Hi,
Can somebody please help me out?
Consider the following snippet:
cout << "Enter your name: ";
cin >> n;
cout << "Hello " << n << "!" << endl;
If I input 'Joe Bloggs' it will only print out 'Hello Joe!'.
When using cin or scanf to read a string, how do you make it read everything the user types in (including spaces)?
Thanks in advance.