What do I need to gather all lines of numbers say 88 on one line, and 92 on the second and so on?
I have:
ifstream theFile("grades.txt");
theFile >> sc1 >> sc2 >> sc3;// this gives me each number, but I need to be able to read them all then find the avg. Do I have to list each number as a separate input from file(ie, sc1, sc2)