setter tag

1 questions


1 answers
112 views
0
While practicing classes in winapi, how do I export to the getter setter or change the value of the imported variable?

// Declare score variables in the Player classm_nScore;Player::Init(){ m_nScore = 0;}// Getter int GetPlayerScore() { return m_nScore; }// Dynamic Assignmentm_pObjects = new Objects;m_pObjects->Set...

2 years ago

© 2024 OneMinuteCode. All rights reserved.