problem in code

This is a discussion on problem in code within the C++ Programming forums, part of the General Programming Boards category; can anyone here figure out my problem in my code
it reads from a dat file containing this.
Code:
C. ...

the problem is that the very first quota that is printed to the outfile is some random number and the last quota that is suppose to be printed isnt there. I don't know where the number came from. Can i please get some help this is due at 10 pm tonight!!!!.