Im trying to write a program which reads information (a student number and the GPA of the student) from a file, displays the information. also Compares the GPA of the student to determine the highest gpa, then displays the student number and the gpa of that student
I suspect you want a vector of Students, not a vector of doubles.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.
Yes i want to assign the information from the file
which is student number followed by a space and then the gpa of the student,
i want to assign the everyline of the file to a student object, then use the find the highest gpa and display it with the student number.
@AbstractionAnon
i also have to display the contents of the file, but im not sure have to access the vector , and to check if the contents of the file is actually in the vector.