Perhaps the easy thing to do would be to start with


struct card {
int rank; // 2 through to J=11, Q=12, K=13, A=14
char suit; // HCDS
};


From there, you can have