my program needs a wait function i tried sleep it did not work. were the bold mark is were i need it. the password is Herer5.
///void/// fire 1.3
#include <iostream>
#include <string>
using namespace std;
int
main ()
{
int mm = 3;
pass:
string pw;
string hq = "H";
string mq = "e";
int g = 7;
int a = 2.5;
int b = 2.5;
b = a + a;
a = b * 2 / 2;
int c = b + a / 2;
string omega = "5";
int d = 7 * 7 / 7 - 1 + 2;
g = 7 * 2 / 2;
if (g == 14)
{
}
else
{
string oq = mq;
string an = hq + oq + "r" + oq + "r" + omega;
cout << "please type password" << endl;
cin >> pw;
if (pw == an)
{
cout << "welcome" << endl;
return 0;
}
else
{
cout << "sorry Wrong Password" << endl;
cout << "=====================" << endl;
mm = mm - 1;
if(mm<1){
cout<<"wrong password lock mode"<<endl;
put wait here
goto pass;
}
else{
goto pass;
}
}
}
}