1. No recommendation when coding in VS Studio 2005? try to check whether you left some important punctuation, such as ") ] } ; " etc
2. try to use FileWriteTuple(ofstream& ofs, string line) instead of FileWriteTuple(ofstream ofs, string line), just some feeling, no reason.
3. getline(infile, line, '\n') function will also count the line if the last line of the file has an enter return.
4. for checking whether an element exist in a set or not, there is a function named set::count handle it. No need to write your own function.
Thursday, October 25, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment