Hello I'm using visual studio
I need help making a program where a txt file will be read.
my program should read all the test scores in the line and will stop when -1 is entered
example input file
joshua
90 89 -1
michael
76 80 89 -1
Shawn
78 100 90 80 -1
my problem is how should i get the test scores in the line to calculate average of it
Im thinking using getline(Fin,Scores) but Im not sure if that is the right method