I have a header (header protection not shown):
class games System {public: game system (game * PCGM); Virtual ~ game system (); void setup(); Private: Zero InitGame (); Zero Run Game (); Zero ExitGame (); Game * M_PCG Game; / * Properties * / Int M_ Envith; Int m_nHeight; Int m_nFps; Bull M_b Fullscreen; }; How do I define body for InitGame () , rungam () and exitGame () Can i do ? Can I define it in my .cpp file? if so, how? Or am I bound to make my body in my .h file?
I am using Eclipse and I started typing: zero GameSystem :: and it does not suggest personal actions.
Yes, you are then one. Can be defined in the CPP file. Just add # to "MyHeader.h" at the beginning of the file. You must also initiate each such function.
zero GameSystem :: Init () {// stuff}
Comments
Post a Comment