I am writing a program in c++ and I would like to compare the data which are in a file to the data within an array. I would like to ask I could do it. please help me I am learning C++ and all my reseach didn't give me a satisfying result. thanks
How do I check data from a file in c++?
you will have to load the data from the file into another array and then compare them one by one. Maybe if u pasted the snippet of code we could help more. are you daeling with numbers, words, strings etc?
Reply:If you are using MS Visual Studio .net:
You can use the debug.
I don't know what program you are using to compile, but let me know and maybe I can help more.
Reply:What exactly are you checking for? Do you want to see if each item in the array is the same as the data in the file?
Give us more specifics.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment