Skip to content

Commit fe30caf

Browse files
Tree menu
1 parent 375362d commit fe30caf

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

cmake-build-debug/Stuff

0 Bytes
Binary file not shown.

main.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,19 @@ struct ActionLos
269269
break;
270270
}
271271
case 0:
272-
cout << "Программа завершена"<<endl<<endl<<endl;
273-
return;
272+
cout << "Вы уверены, что хотите выйти из программы?"<<endl;
273+
cout << "[1] - Да" << endl;
274+
cout << "[2] - Нет" << endl;
275+
cin >> choise;
276+
switch(choise){
277+
case 1:
278+
cout << "Программа завершена"<<endl<<endl<<endl;
279+
return;
280+
case 2:
281+
cout << "Не выходим из программы";
282+
break;
283+
}
284+
break;
274285
default:
275286
cout << "Вы ввели неправильную команду!";
276287
menu1();

0 commit comments

Comments
 (0)