loop wont work , college albegra help ASAP

when i put the end of file statement it keeps repeating the same input over and over as an infinite loop , why wont it read the rest of my data

data file :
879.46
C 400.00
D 100.00
F 525.00
C 450.00
D 500.00
D 1000.00
C 2000.00
D 3000.00
D 3500.00
C 5500.00
C 500.00
B 200.00
C -235.00
D 250.00
H -500.00
D 500.00
E


what im out putting with the end of file loop:

Your beginning balance is $879.46

C
400
Your beginning balance is $879.46

C
400
Your beginning balance is $879.46

C
400


that keeps repeating
Hard to say since you've provided none of the relevant code.

Please don't crosspost the same message to multiple forums on this site. One is plenty.
http://www.cplusplus.com/forum/general/124143/
Last edited on
Topic archived. No new replies allowed.