#include <time.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
system("color a");
srand(time(NULL));
string sifre;
string alp[39] = {"a", "b", "c", "ç", "d", "e", "f", "g","h", "i", "j", "k", "l", "m", "n", "o", "ö", "p", "r", "s", "t", "u", "ü", "v", "y", "z", "x", "w", "q", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"};
while (true)
{
cout << "sifrenizi yaziniz :";
cin >> sifre;
while (true)
{
int s1 = rand() % 39;
int s2 = rand() % 39;
int s3 = rand() % 39;
int s4 = rand() % 39;
//int s5 = rand() % 42;
string pass = alp[s1] + alp[s2] + alp[s3] + alp[s4]; //+ alp[s5];
cout << pass << endl;
//system("clear");
if (pass == sifre)
{
cout << endl
<< "sifre kirildi :" << pass << "\n\n";
break;
}
}
}
}