I suggest you switch to using getline() instead of get() since getline() will discard the delimiter where get() leaves this pesky character in the input buffer. Also since you're including the <string> header file you should switch to using std::string instead of the character strings.

You'll probably also need to handle this pesky character when you switch from the extraction operator to getline() as well.


Jim