User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 456,532 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,888 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 1842 | Replies: 0
Reply
Join Date: Aug 2004
Posts: 5
Reputation: Frogstar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Frogstar Frogstar is offline Offline
Newbie Poster

Beginner needs assistance with 'error checking' program

  #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!
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 4:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC