Hi.
I'd like to be able to input a first and last name using one string.
Is there a way to check for a space to know where to separate the first from last name?
See, I dont' want to use two strings. One for first, and one for last.
(This program isn't for any extremely useful purpose, I am still learning.)
eg.
void enterName(void) {
char name[50];
cout << "Please Enter Your First and Last Name\n";
cin >> name;
/* find space in name */
cout << "Welcome, " << name;
return;
}