This is the function i want to call in my main.
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();
}
Which is in this class:
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?