How about showing us what you have done so far ?
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
Yeah, I guess you are missing on your basics pretty badly. I would really recommend you to start googling for terms like C++ structs, loops, conditions, functions, file operations etc...Try coming up with a code which is somewhere near the actual problem requirements and we would definately help you out.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
What's this line supposed to do?
string[4];
And btw you still need to code getdata , or if you have, you need to post it here...
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
I know.. C++ structs, loops, conditions, functions, file operations
Looking at the code you posted it's hard to beleive that..
Unfortunately given the number of basic errors in code are too many.. As someone said it's better if you brush up the basics, re-write this piece of code,compile it and the post again.. it's simply too much to write for anyone if they have to correct everything in this code..
thekashyap
Practically a Posting Shark
811 posts since Feb 2007
Reputation Points: 254
Solved Threads: 75
Forgot the reason why I started prev post..
See these links for some basics..
thekashyap
Practically a Posting Shark
811 posts since Feb 2007
Reputation Points: 254
Solved Threads: 75
try to put this function instead of the last one printcheck.
may be the reply is too late but it could be useful for others.
best regards
Only about a year late..
lAmoebal
Junior Poster in Training
63 posts since Mar 2008
Reputation Points: 12
Solved Threads: 1
Don't resurrect old threads!
Inevitably, if you use the search feature you'll stumble upon an interesting thread that you think you can add to. Resist the temptation to post until you've looked at the post date for the most recent post in that thread. It's possible that the thread is years old and you have no business bumping it to the top of the list. A thread is considered old after two months.
Let dead threads lie, don't post in them!
http://www.daniweb.com/forums/thread78223.html
lAmoebal
Junior Poster in Training
63 posts since Mar 2008
Reputation Points: 12
Solved Threads: 1