Hoping someone can help I am writing a poker game and at the moment im just simply try to add the amount of pairs, two pairs, three of a kind etc.
I created a function to count the number of each type of card into a vector...
example:
std::vector<int> _cardCount[13]{};
_cardCount[0] = the amount of twos in the holeCards and TableCards
_cardCount[1] = the amount of threes in the holeCards and TableCards
etc......
This all work fine until the point that I try to increment the value of said _cardCount.
example:
//none of these work
cardCount[0] += 1;
cardCount[0]++;
cardCount[0] = cardCount[0] + 1;