I need to make a SIMPLE BASIC program that plays crabs
#include<iostream>
#include<string>
#include<ctime>
using namespace std;
int main()
{
int money, i, wager, roll, roll1, roll2;
string name;
char bet, R;
cout <<"Lets Play Craps!" << endl;
cout << endl;
cout <<"This program stimulates a session at a craps table!"<< endl;
cout << endl;
cout <<"What's your first name , slick? ";
cin >> name;
cout <<"How much money do you have? ";
cin >> money;
cout << endl;
cout <<"Round 1";
cout << endl;
cout <<"Bet on Pass(P) or Don't Pass(D) ?";
cin >> bet;
cout << endl;
cout << "How much do you wager? ";
cin >> wager;
while (wager > money)
{
cout <<"Error, enter a smaller amount.";
cout << endl;
cout <<"How much do you wager?";
cin >> wager;
}
roll1 = (rand() + time(0)) % 6 + 1;
roll2 = (rand() + time(0)) % 6 + 1;
roll = roll1 + roll2;
cout <<"Enter R to roll: ";
cin >> R;
cout << endl;
cout << "Roll is " << roll;
cout << roll << " is the point!";
cout << roll;
cout << roll;
system("pause");
return 0;
}