MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main

Function main

Lab_18/main.cpp:60–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58};
59
60int main()
61{
62 for (int k = 0; k < 1000; k++)
63 {
64 system("cls");
65 cout << " M A I N M E N U\n"
66 << "-------------------------------\n"
67 << "1. First program\n"
68 << "2. Second program\n"
69 << "0. Exit\n"
70 << "-------------------------------\n"
71 << "Your choice: \n";
72 switch (_getch())
73 {
74 // First program
75 case 49:
76 F_First();
77 break;
78 // second program
79 case 50:
80 F_Second();
81 break;
82 default:
83 cout << " Your choice is not available in Menu.\n Please, enter one more time.\n";
84 Sleep(0700);
85 Sleep(0700);
86 break;
87 case 48:
88 return 0;
89 break;
90 } // Switch
91 } // For loop
92 system("pause");
93}
94
95void F_First()
96{

Callers 2

F_FirstFunction · 0.70
F_SecondFunction · 0.70

Calls 2

F_FirstFunction · 0.85
F_SecondFunction · 0.85

Tested by

no test coverage detected