Are you sure that this program compiles? You seem to have used string in your code, but you haven't included <string.h> at all...!
That's because std::string is not declared in <string.h> -- its in <string> header file. And some compiler include <string> with <fstream>
Last edited by Ancient Dragon; May 22nd, 2009 at 11:04 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005