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