Say I want to create a card class. and want to have enums for the cards
2,3,4,5,6,7,8,9,J,Q,K,A
Where's the best place to define this, the header file Card.h or Card.cpp?
It's going to be a new type. So I would probably put it on the header file in case I need it in other compilation units.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With