thanks guys
ok , i've replaced the eof code, with the white( inFile etc etc.)
but now the loop aint working properly, it is skipping the first student, then the 3rd, then 5th, so its leaving out every second student including the first student... do you know how i can fix it?
Code:
+++++Section 1 Student List+++++
s1236 Bridges, Tony D 82.20 D
s3232 Smith, Ellisa D 83.40 D
s3343 Johnson, Samuel D 68.60 Cr
s3434 Jones, Christina D 59.60 P
s3444 Nielson, Anna D 80.20 D
s4343 Sloane, Jack D 89.40 HD
that is what appears..
and this is my code..
Code:
while(inFileDay >> studentdayId >> firstname >> surname >> num1 >> num2 >> num3 >> num4 >> num5)
{
stuff
{
stuff
}
stuff
{
stuff
}
{
stuff
}
stuff
}
while(inFileEvening >> studenteveningId >> firstname >> surname >> num1 >> num2 >> num3 >> num4 >> num5)
{
stuff
{
stuff
}
stuff
{
stuff
}
{
stuff
}
stuff
}