Beginner needs assistance with 'error checking' program

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2004
Posts: 5
Reputation: Frogstar is an unknown quantity at this point 
Solved Threads: 0
Frogstar Frogstar is offline Offline
Newbie Poster

Beginner needs assistance with 'error checking' program

 
0
  #1
Aug 11th, 2004
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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC