I'm doing a project thats a jousting game between knights, I'm doing all my class (3) and everything all in one file, is that okay?
I also am getting an error...
Heres my code:
projecttwo.cpp:5: error: new types may not be defined in a return type
projecttwo.cpp:5: note: (perhaps a semicolon is missing after the definition of 'Weapon')
projecttwo.cpp:16: error: return type specification for constructor invalid
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/crt1.o: In function `_start':
/glibc-tmp-4211a76efa4c5de6d46269f47808acd6/glibc-2.11.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status
So I thought it was wrong! Guess not but it's still not compiling...
I don't see a main() function anywhere in this code. If this is just a class file that's meant to be part of a bigger project, don't try to link/run it by itself.