Question: sses Lab Poker) Classes La ment you will be given the code for two classes (Card and Deck) this assignment you will be For this
sses Lab Poker) Classes La ment you will be given the code for two classes (Card and Deck) this assignment you will be For this ahoa a set of playing cards. Using these classes, you will write a For this assignment program, game1ayi of certain poker hands. ame1.h and gamel.cpp, that calculates the frequency of occurrence Note that while I will give a not be necessary to unders or the taod the interface (member functions) to each of the classes. You should or de necessary to for the classes in not De nasses in order to use the classes in your program. You will only need to I will give a simple description of each of the classes below, it wil to understand the code (and at this point I don't expect you to til these classes without modification. In fact, I do not want you the classes, unless your include statement requires a change from am to iostream.h and your compiler does not require a namespace e be able to to modity the classes iostream toiost Tme Card class is defined in card.h and card.cpp. These files define a class The Card class is data type) for representing ir voe) for representing individual playing cards. A card can be initialized, inspected, and printed using the following methods: getSuit () getValue (0 printSuit ) printValue () printCard )) Note that the Card class defines enumerated data types to represent the suit and value. You can use these types in your program, but since they are defin within the Card class, you have to use the scope resolution operator to access them. That is, if your program needs to define a variable to contain a card value, it would be declared: Card::Value cvi t you wa want to assign the value ACE to this variable, you would write: Card::ACE ocus on us on object-Oriented Programming with Ct+ Page 183
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
