I am reading a variable through cin and i wish to output it to a file, my beta version works, but it kills the output after the first space...the tutorial here says to use the following code:
Code:
string output;
//use char or string??
yada yada yada
cin.getline(output,'\n');
and yes i do have a main function and all that good stuff...i followed the example exactly, but during compile, i get this error:
Could not find a match for 'istream::getline(string,char)' in function main()
please help me, it would be much appreciated