loop through it and make sure at least one character isn't a space would also tell you.
Oh, and it's "Your" instead of "You're", you're = you are
pseudorandom21
Practically a Posting Shark
890 posts since Jan 2011
Reputation Points: 216
Solved Threads: 111
Use a loop:
string name;
cout << "Enter You're Name: ";
while(name.empty())
getline(cin, name);
mike_2000_17
Posting Virtuoso
2,134 posts since Jul 2010
Reputation Points: 1,634
Solved Threads: 457