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

Function main

Lab_16/Source.cpp:332–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330};
331
332int main()
333{
334
335 for (int k = 0; k < 1000; k++)
336 {
337 system("cls");
338 cout << "\tM A I N M E N U\n";
339 cout << " =====================\n";
340 cout << " 1. First program\n";
341 cout << " 2. Second program\n";
342 cout << " 0. Exit\n";
343 cout << " Your choice: \n";
344 switch (_getch())
345 {
346 case '1':
347 {
348 cout << "\t Educational institution database\n";
349 // calling the menu of first program
350 F_First_Program_Menu();
351 }
352 break;
353 case '2':
354 {
355 cout << "\t Second program\n";
356 // calling the menu of second program
357 F_Second_Program_Menu();
358 }
359 break;
360 case '0':
361 {
362 return 0;
363 break;
364 }
365 default:
366 {
367 cout << endl
368 << endl;
369 cout << "\t\t Your choice is not abailable in Menu. \n\t\t Please try one more time.\n";
370 Sleep(0700);
371 Sleep(0700);
372 }
373 break;
374
375 } // switch
376 } // for loop
377 system("pause");
378 return 0;
379}
380
381void F_First_Program_Menu()
382{

Callers

nothing calls this directly

Calls 2

F_Second_Program_MenuFunction · 0.85
F_First_Program_MenuFunction · 0.70

Tested by

no test coverage detected