If i have a constructor as follows:
Can i use the variable screen_places inside another function of that class?Code:CircGame::CircGame(int num_of_players, CPoint * screen_places, int steps) : m_steps(steps) , m_is_ME_OK(false){ }
for example
ThanksCode:void CircGame::Proceed(void) { while(screen_places > 0)..... }



LinkBack URL
About LinkBacks



with the variable you are passing by refrence then use that in the class methods, finally return the value needed. Or if calling individual classfunctions pass it by refrence to the individual functions.