Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int hand[HAND_SIZE];
- readNumbers(hand);
- if (containsPair(hand)) {
- cout << "Pair!" << endl;
- }
- if (containsTwoPair(hand)) {
- cout << "Two Pair!" << endl;
- }
- if (containsThreeOfaKind(hand)) {
- cout << "Three of a Kind!" << endl;
- }
- if (containsFullHouse(hand)) {
- cout << "Full House!" << endl;
- }
- if (containsFourOfaKind(hand)) {
- cout << "Four of a Kind!" << endl;
- }
- if (containsStraight(hand)) {
- cout << "Straight!" << endl;
- }
- else {
- cout << "High Card!" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement