default: // remember point (the number to
roll again)
gameStatus = CONTINUE;
myPoint = sum;
cout << "Point
is " << myPoint << endl;
break; // optional
} // end switch
// while game not complete ...
while ( gameStatus == CONTINUE ) {
sum = rollDice(); // roll dice again
// determine game status
if ( sum == myPoint ) // win by making point
gameStatus = WON;
else
if ( sum == 7 ) // lose by rolling 7
gameStatus = LOST;
} // end while