string userName; cout << "Please enter your name: "; getline(cin, userName);
Then I need to somehow split that to store their first and last name in different string variables.
Would i need to do something like .find(" ") that would find the first white space or am I on the wrong track here? I think that would just return a number of an array though.. ARGH!
And just so others know, I've googled it and checked other people's answers but they all use this split.h or #include <iostream> and we haven't gone over any of that.
This post has been edited by oAllElseFailo: 20 March 2012 - 01:32 AM