Cin.get().... with char* or string?
char line[25]="Hello!";
string line="Hello!";
i looked in MSDN and it said that you can only use cin.get like this:
cin.get (line, 25); // for char* only.
and i tried it with a string. and VC6 was telling it had to be a char*.
is there a way to use a string (with whitespaces)?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement