Hello, I'm trying to read names separated by a comma using array.
For example, the expected input would look like the following:
Juila,Francisco
Adams,Wong
I know you can use getline function and set the delimiter to comma. So like ....
getline(cin, lastName, ',');
getline(cin, firstName);
But the program only read the last name and ignore the firstname.
Thank you for the help.