Question: This is my pokerHand code in C++ in The code is in 3 files: PokerHand.cpp PokerHand.h PokerHand_test.cpp Can you please see why my code does
This is my pokerHand code in C++ in
The code is in 3 files:
PokerHand.cpp
PokerHand.h
PokerHand_test.cpp
Can you please see why my code does not work?
What is the problem? Which line is not correct.
Last screen shot is the description, just in case.
Thank you so much
we > ? PokerHand.h D Poker Hand.cpp PokerHand_test.cpp 0 bool apair(int cards []); 2 bool twopair(int cards[]); 3 bool threekind(int cards[]); 4 bool straight(int cards[]); 5 bool fullhouse(int cards[]); 6 bool fourkind(int cards[]); 7 int highcard(int cards[]); I > PokerHand.hu Poker Hand.cpp U Poker Hand_test.cpp 1 #include > cards[i]; 15 } 16 17 //test the outcome of each hand by calling the hand in a conditional statement 18 - if (fourkind(cards) 19 cout 3 156 164 Poker Hand.cpp Requested fies: Poker and h. Poverhand.cpp, Pokhand test app Download Type of work Individual work Write a program that reads five cards from the user, then analyzes the cards and prints out the category of hand that they represent Poker hands are categorized according to the following label: Strnight Push, four of a kind, lut house, straight, Push three of a kind, two pairs, paie, high card. To simply the progum we will ignore curd cuts, and taco cards. The values that the user inputs will be integer valued from 2 to 9 When your prograr runs le should start by colecting we wtoper values from the user. It might look like this user input in en orange for clarity Erter five numeric cards, no face cards. Uno 2-9. Card 1:8 Cars 2:7 Card 38 Card 42 Od 3 (This is a pait since there are two eight Since we aro ignoring card sults there won't be any fushes. Your program shodiet be able to recognize the following hand catopoies, voted from toont viablo to most valuable Hand Type Description Example High Cord Thore are no matching cards, and the hand is not a straight2.6 2.87 Par Two of the cards are identical 2,53,57 Two Par Two different pairs 2.5,3,53 Three of a Nind The matching and SS.S, Fun House A por, dative of a no 0,7,6,7,7 Straight Card van bewanged in order 3.4.5.6.7 Four of a kind Four matching Cards 2.5,5,5,5 note on who is a register, so the value 3,4,5,6,7 repintar, uso do traws 4.5.0 Your program video in five vies and men interprete and type. If a rand matches more than one descrie program shop them and Here are two runs of the program Enter five nume card nocend Use 2 Card 10 Card 2017 Card Card Two Per