SevenCardStud.cpp
//
// SevenCardStud::SevenCardStud()
// default constructor
// initialize dealer_index to be the first player and push 52 cards to the main_deck
//

:SevenCardStud()
default constructor
initialize dealer_index to be the first player and push 52 cards to the main_deck
: SevenCardStud () default constructor initialize dealer_index to be the first player and push 52 cards to the main_deck
SevenCardStud::SevenCardStud() : dealer_index(0)
{
	int i;
	for (i = 0; i < numRanks; i++){
		int j;
		for (j = 0; j < numSuits; j++) {
			Card card((Card::rank)i, (Card::suit)j);
			main_deck.addCard(card);
		}
	}
}
SevenCardStud :: SevenCardStud ( ) : dealer_index ( 0 ) { int i ; for ( i = 0 ; i < numRanks ; i ++ ) { int j ; for ( j = 0 ; j < numSuits ; j ++ ) { Card card ( ( Card :: rank ) i , ( Card :: suit ) j ) ; main_deck . addCard ( card ) ; } } }
SevenCardStud::SevenCardStud()
default constructor
initialize dealer_index to be the first player and push 52 cards to the main_deck
SevenCardStud :: SevenCardStud () default constructor initialize dealer_index to be the first player and push 52 cards to the main_deck