/* testDice.cpp * * Test the dice class. * Bruce M. Bolden * July 5, 1998 */ #include #include "dice.h" int main() { int i, nRolls = 6; // dice objects Dice d1; Dice d2( 12 ); cout << "Roll of d1: " << endl; for( i = 0 ; i < nRolls ; ++i ) cout << d1.Roll() << endl; cout << "\nRolling d2:" << endl; for( i = 0 ; i < nRolls ; ++i ) cout << d2.Roll() << endl; return 0; //EXIT_SUCCESS; }