I want a way to load 52 cards in an Array without having to hard code it.
I have an array suits which contains “H” , “C” , “S” , “D” prefixes for each suit.
I need to have a single array cards[52] with values H1-H13,S1-S13 etc.
The problem i am facing is i can load cards[0] to cards[12] fairly easily, but how do i load the next card in cards[13] ?
I want a way to load 52 cards in an Array without having to
Share
You can do something like this: