I am working on reading a data file using a class called 'Student'. But I am having a hard time printing(reading) it(I'm also getting compiling errors as well) so I am looking for some advice. I'm currently working on my logic too so bear with me: The purpose of this program below is to read four fields to the record inside a text file called "input.txt" carrying the information of a roster with a students lastName, firstName, gpa & totalCredits. My problem is reading the file& printing it. Please correct me if I am wrong, I am very open to criticism :)
Line 29, 32, 35, 38 read in some variable.
Line 30, 33, 36, 39 overwrite the value currently read in by some data following the previously read data.
Line 36, 39 shouldn't compile. As long as I know there's no getline() defined for ìnt.