Looking to add comma delimited values in a text file to members of a struct
问题 I have a text file here with two values, a name and a score. I have a student struct that has 4 members which are seen below. I am looking to add the values in the text file to the corresponding members in the struct separating by comma. First five rows of the students.txt file; Nubia,Dufrene,70 Louisa,Trippe,49 Aline,Deniz,34 Shery,Munk,63 Angila,Ping,89 My current code; struct studentType { string studentFName; string studentLName; int testScore; char grade; }; int main() { vector