Includehm
Includehm
h>
#include <string.h> // Needed to use strings
#include <stdlib.h> // Needed to use random numbers
#include <ctime>
using namespace ;
void drawLine(int n, char symbol);
void rules();
int main()
{
string playerName;
int amount; // hold player's balance amount
int bettingAmount;
int guess;
int dice; // hold computer generated number
char choice;
srand(time(0)); // "Seed" the random generator
drawLine(60,'_');
cout << "\n\n\n\t\tCASINO GAME\n\n\n\n";
drawLine(60,'_');
cout << "\n\nEnter Your Name : ";
getline(cin, playerName);
cout << "\n\nEnter Deposit amount to play game : $";
cin >> amount;
do
{
system("cls");
rules();
cout << "\n\nYour current balance is $ " << amount
<< "\n";
// Get player's betting amount
do
{
cout <<playerName<<", enter money to bet : $";
cin >> bettingAmount;
if(bettingAmount > amount)