Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GamePlayer {
- private:
- enum { NUM_TURNS = 5 }; // "the enum hack" — makes
- // NUM_TURNS a symbolic name
- // for 5
- int scores[NUM_TURNS]; // fine
- ...
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement