craps.cpp // craps.cpp // Simulates the game of craps. A modified version of Owen Astrachan's // program, A Computer Science Tapestry, 1997, McGraw-Hill, p. 225-231. // Revised on 4/10/97, Cary Matsuoka. #include #include #include int rollDice(); bool getPoint(int point); bool winGame(); dice die(6); // global die, constructs die once main() { int k, gamesWon = 0, gamesToPlay; double percWon; cout << "Enter number of games to play ---> "; cin >> gamesToPlay; for (k=0; k