Have not tried your code but this looks wrong
outFile << left << setw(13) << stu1.lastName << setw(13) << stu1.quiz1 << setw(13) << stu1.quiz2 << setw(13) << stu1.midterm << setw(13) << stu1.final << stu1.final_grade << stu1.total_grade;
try using
outfile >> Value;
If that doesn't work, change outfile to cout and make sure all the values are correct.
Last edited on