heyo,
im working on classes in c++. i get the OOP concepts and have programmed in c# but am having some trouble with c++, can someone show me some examples, preferably in an IDE format.
The same way you would with multiple files that weren't all class definitions. Preprocessor copies the headers into each file, each file then gets compiled into an object file, each object file is then given to the linker.
C:\Users\Jack Martin\Documents\myprograms\BattleGame\main.cpp||In function 'int main()':|
C:\Users\Jack Martin\Documents\myprograms\BattleGame\main.cpp|7|error: 'Hero' was not declared in this scope|
C:\Users\Jack Martin\Documents\myprograms\BattleGame\main.cpp|7|error: expected ';' before 'player'|
||=== Build finished: 2 errors, 0 warnings ===|