i need to have a bool flag controlled loop
if the grade is not an 'F' , it reads the name.
the process ends when the letter grade of 'F' is read.
im just not sure what my bool is or the format.
Read the line, then associate the string that holds the line with a string stream, read the grade and the name into separate strings then output them. If the grade is a F then the while condition will be true and the loop will end and since the last grade was a F we have a if statement so it doesnt print it and you get the output you wanted..
Anytime you write something like "F" as a string, you are creating a temporary const, in this case to compare it with grade, so no need to dclare a separate const.