7.10 LAB: Warm up: Parsing strings
(1) Prompt the user for a string that contains two strings separated by a comma. (1 pt)
Examples of strings that can be accepted:
o Jill, Allen
Jill, Allen
Jill, Allen
Ex
Enter input string:
Jill, Allen
k
(2) Print an error message if the input string does not contain a comma. Continue to prompt until valid string is entered. Note If the input
contains a comma, then assume that the input also contains two strings. (2 pts) c++