•
•
•
•
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
![]() |
•
•
Join Date: Aug 2004
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
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!
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!
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Custom error checking (C#)
- Help with 1.pointers and 2.error checking (C++)
- Error Checking for user input (Java)
- Bus Error when I run my C++ program (C++)
- error checking of user input (C++)
- Basic Error Checking (C++)
- How to Perform Disk Error Checking in Windows XP (Windows tips 'n' tweaks)
Other Threads in the C++ Forum
- Previous Thread: turbo c++ errors
- Next Thread: loop in main function to an "if" statement


Linear Mode