Skip to content

Commit

Permalink
Final menu
Browse files Browse the repository at this point in the history
  • Loading branch information
stKhaDgar committed Nov 17, 2017
1 parent 83bc745 commit c124f09
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions List/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,20 @@ int main()
cin >> menu;
if (menu < 2 || menu > 7 || (menu == 5 && Train.size() == 0))
{
if (menu < 2 || menu > 7)
if (menu < 1 || menu > 7)
{
cout << "Òàêîãî ïóíêòà ìåíþ íå ñóùåñòâóåò, ïîïðîáóéòå åù¸ ðàç.\n";
}
else if (menu == 5 && Train.size() == 0)
{
cout << "Âàø ñîñòàâ ïóñò. Ñíà÷àëà äîáàâüòå âàãîíû.\n";
}
else if (menu == 1)
{
cout << "Âû óæå â ãëàâíîì ìåíþ.\n";
}
}

} while (menu < 2 || menu > 7 || (menu == 5 && Train.size() == 0));

break;
Expand Down Expand Up @@ -379,7 +384,7 @@ int main()
cout << Train.filter(typeofrc, intCond, intWifi);
cout << "\n----------------------------------------------------------------------------\n\n";
cout << "1. Ãëàâíîå ìåíþ.\n";
cout << "2. Íîâûé ôèëüòð.\n";
cout << "2. Íîâûé ôèëüòð.\n\n";

do
{
Expand Down

0 comments on commit c124f09

Please sign in to comment.