Witam, dopiero zaczynam programowac na wlasna reke i mam pewien problem. Otoz program nie chce wejsc w petle while. Prosze o pomoc i pozdrawiam.
int main() {
int wybor;
bool tmp = false;
while (tmp == true) {
cin >> wybor;
switch (wybor) {
case 1: {
tmp = true;
cout<<"wyb1"<<endl;
break;
}
case 2: {
tmp = true;
cout<<"wyb1"<<endl;
break;
}
default:{ cout<<"niepoprawny wynik"<<endl;
break;
}
}
}
}