943,717 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 487
  • C++ RSS
Sep 26th, 2008
0

Help!!! Life and Death situation

Expand Post »
Am having an assignment on modular programing.
the program ( VCD system) must
(1) Initialize database,
(2) Add a record for VCD
(3) delete record for a VCD
(4) Print out all VCD
(5) save to text file
(6) Load from text file.

have actually worked on it but i just can't get pass the errors.. it's really killing me..
can i get someone to check my program?.. problem solving is one hell of a headache for me..

am attaching the assignment to this message...........

please guys, come to my rescue...
thanks in advance
Attached Files
File Type: zip VCD system.zip (1.79 MB, 3 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dapcigar is offline Offline
6 posts
since Jul 2008
Sep 26th, 2008
-1

Re: Help!!! Life and Death situation

prompt.h: missing the return type of all functions.
prompt.cpp: ditto (same problem)

your zip file contains 4 different projects. That's not what you want. You need to put all those files into just one project so that they can all be linked together.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Sep 26th, 2008
0

Re: Help!!! Life and Death situation

prompt.h: missing the return type of all functions.
prompt.cpp: ditto (same problem)

your zip file contains 4 different projects. That's not what you want. You need to put all those files into just one project so that they can all be linked together.
Thanks....
i was using Vc++ 6 to write the program initially.
have added it to a project now..
thanks in advance
Attached Files
File Type: zip vcd1.zip (428.0 KB, 8 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dapcigar is offline Offline
6 posts
since Jul 2008
Sep 26th, 2008
0

Re: Help!!! Life and Death situation

That zip file doesn't include the *.cpp and *.h files so I just copied them from your last *.zip file.

Continuing from where I left off
vcdrec.cpp: you forgot to include <fstream> which is where ifstream is declared.

Then you misspell the name of the ifstream object every time you used it.

You have confused Load_Record_From_File() and Load_Save_To_File(). Switch the code in those two functions around. And I think the filename used in both those functions should be the same. You can't write the data to one file and expect to read from a different file.



After correcting all the above your program is left with several functions you have not yet coded. The link error messages will tell you which functions are missing.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: c++ message
Next Thread in C++ Forum Timeline: Please Help me to Understand the callback functions using this pgm.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC