#include <string>
#include <iostream>
usingnamespace std;
int main ()
{
cout << "Please enter your first name and last name\n";
string first;
string second;
cin >>first>>second;
cout << "Hello," <<first<< '' <<second<< "\n";
return 0;
}
Here you try to print an empty character, which causes a compiling error. '' is different from ' ' (with space), because a space character is actually a character which can be printed.
ok disregard last post
very very new to C++
i typed in the test instead of cop and pasting it to attempt to learn better, but i dont understand what you mean?
ok thanks i originally thought whitespace didnt matter at all is what i had read. i feel like i am entering a whole new world that i keep scratching my head and taking small breaks to avoid headaches lol Any chance of my other question http://www.cplusplus.com/forum/beginner/46883/