Trouble trying to input only certain fragments of a sentence
say i'm reading from a text file and it says:
"Michelle Johnson , Dennis Doe , Clifford Robinson"
let's say i got 3 strings and i want to store each name into a string, for ex, string 1 should have "Michelle Johnson", string2 should have "Dennis Doe", etc. Each name is seperated with a space and before and after the comma, can someone explain how i can do this?
because if i use "getline", it'll jus read the whole sentence- any help would be great thanks