This is the function i want to call in my main.
Which is in this class:Code:void run_machine(Hand &hand, Deck &deck , Card &card, int bet(void)) { Deck *test = new Deck(); Hand *testH = new Hand(); cout<<"HELLO WElCOME TO THE POKER MACHINE"<<endl; cout<<"Please enter a bet......."<<endl; bet(); test->shuffle(); test->dealHand(); testH->determineHand(); }
Code:class pokerMachine { public: // CONSTRUCTION // Default constructor. // Summary : pokerMachine( ); // Copy Constructor. // Summary : pokerMachine( const pokerMachine& from ); // Destructor. // Summary : ~pokerMachine( ); // METHODS int bet(void); int payout(Hand &hand, int bet(void)); void run_machine(Hand &hand, Deck &deck , Card &card, int bet(void)); private: // METHODS // ATTRIBUTES };
How would i declare the function in main?



1Likes
LinkBack URL
About LinkBacks



