im tired

ok so im making a program and i want to put the classes in a seperate cpp file than the main program. is there a way to do that and get them to run together.

ps. i just couldnt think of a title
Last edited on
general rule:
1. header -class declaration
2. class.cpp -class definition, include #1 here
3. main.cpp -where main() is, include #1 here

in your IDE, create an empty project, add 1&2&3 to the project, done.
ps. i just couldnt think of a title


Give me a break.

How about "how do I put classes in separate cpp files"?

http://cplusplus.com/forum/articles/40071/#msg216269
thanx next time ill just ask u fer a title :P
Topic archived. No new replies allowed.