- Mar 31, 2003
- 11,679
- 0
- 81
Im trying to do my HW, and while I think this would work at school it is giving me non-existent syntax errors. Antiquated headers and stuff. Basically im not used to this program as at the school we use turbo C for DOS. I downloaded that and it cant find the basic <iostream.h>.
Code at the bottom. It cant find #inculude "apstrings.cpp" so i took it out (i wasn't using it). However i am using Boolean statements but when i put #include <bool.h> in it cant even find the file.
i am getting these errors:
-Wno-deprecated.
Checkbook.cpp:3:18: bool.h: No such file or directory
Checkbook.cpp: In function `int main()':
Checkbook.cpp:17: error: ISO C++ forbids comparison between pointer and integer
Checkbook.cpp:32: error: syntax error before `{' token
Checkbook.cpp: At global scope:
Checkbook.cpp:38: error: syntax error before `else'
Checkbook.cpp:41: error: syntax error before `>>' token
Checkbook.cpp:42: error: ISO C++ forbids declaration of `Balance' with no type
Checkbook.cpp:42: error: `DAmount' was not declared in this scope
Checkbook.cpp:43: error: syntax error before `<<' token
make.exe: *** [Checkbook.o] Error 1
Execution terminated
What the heck is going on here. Yes im only a Junior in high school. No im not asking for HW help but i dont know what in the world is going on with this program as im not used to using it.
*I AM NOT asking for HW help, im just unfamiliar with this program.
-Kevin
Code at the bottom. It cant find #inculude "apstrings.cpp" so i took it out (i wasn't using it). However i am using Boolean statements but when i put #include <bool.h> in it cant even find the file.
i am getting these errors:
-Wno-deprecated.
Checkbook.cpp:3:18: bool.h: No such file or directory
Checkbook.cpp: In function `int main()':
Checkbook.cpp:17: error: ISO C++ forbids comparison between pointer and integer
Checkbook.cpp:32: error: syntax error before `{' token
Checkbook.cpp: At global scope:
Checkbook.cpp:38: error: syntax error before `else'
Checkbook.cpp:41: error: syntax error before `>>' token
Checkbook.cpp:42: error: ISO C++ forbids declaration of `Balance' with no type
Checkbook.cpp:42: error: `DAmount' was not declared in this scope
Checkbook.cpp:43: error: syntax error before `<<' token
make.exe: *** [Checkbook.o] Error 1
Execution terminated
What the heck is going on here. Yes im only a Junior in high school. No im not asking for HW help but i dont know what in the world is going on with this program as im not used to using it.
*I AM NOT asking for HW help, im just unfamiliar with this program.
-Kevin
