-
October 14th, 2012, 02:29 PM
#16
Re: Splitting the code to multiple files
Originally Posted by ArdentAngel
error C2653: 'aa_physics' : is not a class or namespace name
error C3861: 'distance': identifier not found
Header files are used for class definitions and function declarations. cpp files are used for (member) function definitions. You include header files in cpp files or in other header files.
So your main.h file should probably be a main.cpp file and you should include "aa_physics.h" in it rather than the other way round.
Originally Posted by ArdentAngel
So, do you know any really good C++ programming books?
Since you already have some programming experience, Accelerated C++ by Koenig and Moo will be a good choice. It doesn't cover everything in depth, but it teaches you C++ the way professionals use it from the start.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|