>> i didn't get any reply
I don't recall seeing another post -- did I miss it?
1. is that a C or a C++ program? You include both stdio.h and iostream, yet you use C file i/o functions. Make up your mind which kind of program you want and stick to it.
2. the code does not even compile cleanly. before attempting to answer your question you need to fix all the compile errors, then repost the code.
3. next time please use proper indentation -- the code is terrible to read as it is now. I hope you don't write all your programs like that.
Last edited by Ancient Dragon; Oct 3rd, 2006 at 7:39 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,957 posts
since Aug 2005