- Jun 4, 2000
- 483
- 0
- 0
This header file was a .cpp and worked perfectly, but I am trying to convert it so I can use it as a class. THis is what I have so far and i have no idea how to fix most of these errors.
Here is the header file:
rpg.h
Here is the cpp:
rpg.cpp
Here are the error messages:
Compiling...
rpg.cpp
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(29) : error C2059: syntax error : 'constant'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(52) : error C2143: syntax error : missing ';' before ':'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(107) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(108) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(108) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(110) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(114) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(115) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(115) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(117) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(121) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(122) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(122) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(124) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(128) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(129) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(129) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(131) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.cpp(12) : error C2065: 'gameStart' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\rpg\rpg.cpp(13) : error C2065: 'gameLoop' : undeclared identifier
Error executing cl.exe.
rpg.exe - 20 error(s), 0 warning(s)
thanks for any help!
Here is the header file:
rpg.h
Here is the cpp:
rpg.cpp
Here are the error messages:
Compiling...
rpg.cpp
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(29) : error C2059: syntax error : 'constant'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(52) : error C2143: syntax error : missing ';' before ':'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(107) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(108) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(108) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(110) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(114) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(115) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(115) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(117) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(121) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(122) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(122) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(124) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(128) : error C2001: newline in constant
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(129) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(129) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\myprojects\rpg\rpg.h(131) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
c:\program files\microsoft visual studio\myprojects\rpg\rpg.cpp(12) : error C2065: 'gameStart' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\rpg\rpg.cpp(13) : error C2065: 'gameLoop' : undeclared identifier
Error executing cl.exe.
rpg.exe - 20 error(s), 0 warning(s)
thanks for any help!