title: How to read a string in .pc file
body: <p>I am writing a program to connect the database in c++ in a file with .pcg extension. I am trying to input name (with spaces between first name and last name). I have defined the variable as char name[40]. But name variable stores only the first name and the rejects the part after the space. How to get the whole name in the name variable? I have tried "string name". I'm using g++ compiler and it's giving error. </p>