| | |
Help!!! Life and Death situation
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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
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
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.
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.
I told Santa what I wanted for Christmas and he washed my mouth out with soap.
•
•
•
•
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.
i was using Vc++ 6 to write the program initially.
have added it to a project now..
thanks in advance
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.
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.
I told Santa what I wanted for Christmas and he washed my mouth out with soap.
![]() |
Similar Threads
- We need to laugh... (Geeks' Lounge)
- Collins: Why this scientist believes in God (Geeks' Lounge)
- Second Amendment to the United States Constitution (Geeks' Lounge)
- Endless Loops (Python)
- Choose your philosophy... (Geeks' Lounge)
- Hello there (Community Introductions)
- Help on assignment (C)
Other Threads in the C++ Forum
- Previous Thread: c++ message
- Next Thread: Please Help me to Understand the callback functions using this pgm.
Views: 404 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






