My deck has a private member variable with 52 values in it. I have another classes called card that has a rank, for Ace - King, and a suit for C/S/H/D and I'm trying to read this into the array but I do not know how to access the enumerated types of Rank and Suit though the for loop I provided. Any help?
Code:cDeck::cDeck() { int deckNumber = 0; for ( int j = 0; j < 4; j++) { for( int i = 0; i < 13; i++) { m_deck[deckNumber].SetRank(cCard::Rank::[i]); m_deck[deckNumber].SetSuit(cCard::Suit::Clubs); deckNumber++; } } }