Witam! mam taki fragment programu:
int trafnum1 = 0;
int ile;
cout<<"Ile chcesz postawic? ";
cin>>ile;
cout<<"Wprowadz 1 liczbe: ";
cin>>num1;
cout<<endl;
srand(time(NULL));
vector<bool> Randoms(61,false);
for(int i=1; i<21; i++) {
int j = rand() % (80 - 1) + 1 + 1;
if(Randoms[j]) { **//mam pytanie, kiedy Radmos[j] osiągnie wartość true?
Prosiłbym o jakieś przykłady**
--i;
} else {
Randoms[j]=true;
cout<<j<<" ";
}
if(j == num1)
trafnum1++;
if(i % 5 == 0)
cout<<endl;
}
ZA POMOC BARDZO SERDECZNIE DZIĘKUJĘ!