I have a question about declaring structures and functions and variables as opposed to defining them.
I want to setup my program file architecture so that I declare classes and stuff in header files but actually define them in seperate CPP files, can someone help me do this with my deck class? I've looked online for examples but there are so many different cases and different syntax for each case it seems to me..
Thanks in advance :d
Also, should I enumerate the suit? like this?
Code:
enum Suit {
Diamonds,
Hearts,
Clubs,
Spades
};
Maybe I should also enum the card type? something like this:
Code:
enum Card {
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Jack,
Queen,
King,
Ace
};