HELP! Reverse loop?
Use a loop to pull in the sets of information.
As you pull them off, print only the names, in the format Last, First.
Next, use a loop to print information out about the students, in reverse order (last on list through 1st on list).
This is what i got so far
1 2 3 4 5 6 7
|
while (!indata.eof())
{
indata >> fname>> lname >> grade;
cout << lname << ", " << fname << endl;
}
|
Last edited on
Topic archived. No new replies allowed.