Я что то совсем туплю не могу понять почему switch в C++ работает. Может кто подскажет?
int MenuChoise, Exit;
char NewHuman, OldHuman;
bool number1, number2;
cout << "(1) Add new Human" << endl << "(2) Show Human list" << endl << "(3) Delete Human name" << endl << "(4) Edit Human name " << endl << "(5) Close programm " << endl;
cin >> MenuChoise;
cout <<" " << MenuChoise << " "<< endl;
switch (MenuChoise)
{
case '1':
cout <<" variant 1";
break;
case '2':
cout <<" variant 3";
break;
case '3':
cout <<" variant 3";
break;
case '4':
cout <<" variant 4";
break;
case '5':
cout <<" variant 1";
break;
int MenuChoise, Exit;
char NewHuman, OldHuman;
bool number1, number2;
cout << "(1) Add new Human" << endl << "(2) Show Human list" << endl << "(3) Delete Human name" << endl << "(4) Edit Human name " << endl << "(5) Close programm " << endl;
cin >> MenuChoise;
cout <<" " << MenuChoise << " "<< endl;
switch (MenuChoise)
{
case '1':
cout <<" variant 1";
break;
case '2':
cout <<" variant 3";
break;
case '3':
cout <<" variant 3";
break;
case '4':
cout <<" variant 4";
break;
case '5':
cout <<" variant 1";
break;