943,648 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2452
  • C++ RSS
Aug 11th, 2004
0

Beginner needs assistance with 'error checking' program

Expand Post »
Hi,

I'm trying to make a little tool that would come in handy for some work i'm doing, but my knowledge of C++ is quite limited (i've done a few simple projects at uni, and i've got some books on it).

My task is to compare to series of numbers which are meant to be identical and check for any errors. Both data sets are in separate text files, one delineated by " (ie, "1" "2" "3", etc) and the other is only delineated by spaces (surrounded by quite alot of other junk though). For the purposes of the comparison i'm assuming that one set of numbers is correct, so there are basically only 3 types of error that can occur, a number being in the 'master' set and not in the other set, a no. in the master and in the other set more that once, or a number being in the other set and not in the master (hopefully that made sense...).

Anyhoo, i don't think i'll have any problems with the actual checking for errors, it's just that (being a c++ novice) extracting a number from one text file and searching for it in another has be slightly stumped (i've been reading the tutorial on fstream and that seems to be the starting point)... any help/ideas on how this is done would be greatly appreciated.


Thanks!

PS. Sorry for length!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Frogstar is offline Offline
5 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: turbo c++ errors
Next Thread in C++ Forum Timeline: loop in main function to an "if" statement





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC