// main3a.cpp // This is a roullette game for the C++ Game Programming Tutorial // Written by Forest J. Handford // Copyright (c) 1998 ////////////////////////////////////////////////////////////// // These are all standard C++ header files #include // For cin and cout #include // For rand and srand #include // For isdigit #include // For time to seed randomization #include // For strcmp and strlen // The prototype or the function must be declared before it is called int Bet(); // Function Prototype // This is the main function of our game void main() { // We'll use doubles in case of decimal values. double Money; // Amount that player will lose! double Wager; // The amount the player is betting char Exit = 'Y'; //This will hold Y or N. //Print Welcome message cout<<" Welcome to Roullette"<>Money; // Prompt for money cout<>Wager; cout<>Exit; // We only need the first char cout<>Answer; // Recieve input //cout< 13) && (Wheel < 25)) { cout<<"Hooray, You won!"< 24) { cout<<"You won!"< 18) { cout<<"You won!"<