#include<iostream>
#include<windows.h>
#include<ctime>
#include<string>
using namespace std;
int main(){
int condizione;
int random;
system("color a");
cout << " ToMbOlAv.5.0 " << endl;
Beep(250,100);
Beep(300,200);
Beep(200,19);
Beep(200,200);
Beep(200,150);
cout <<""<<endl;
cout <<" premi 1 per giocare" << endl;
cin >> condizione;
Beep(200,100);
switch(condizione){
case 1:
string gioca;
string numero;
cout << "scrivi gioca"<<endl;
cin >> gioca;
Beep(200,150);
cout <<"scrivi la parola numero"<<endl;
cin >> numero;
Beep(300,400);
if(gioca == "gioca" && numero == "numero")
Beep(200,100);
Beep(100,300);
Beep(300,200);
Beep(400,100);
Beep(500,200);
srand(static_cast<unsigned>(time(NULL)));
while (true)
while(1==1)
{
system("cls");
cout <<"attendi mentre i numeri vengono mescolati"<<endl;
cout << rand() % 50;
if(rand()<30)
{
Beep(200,130);
cout <<"hai fatto un terno" << endl;
if(rand() > 50)
{
cout <<" hai fatto una cinquina "<<endl;
system("PAUSE");
}
break;
}
}
}
}