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

Function main

Lab_15/Source.cpp:215–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213};
214
215int main()
216{
217
218 for (int k = 0; k < 1000; k++)
219 {
220 system("cls");
221 cout << "\n\t\t 1. First program (Books)\n\t\t 2. Second program (Bank account) \n\t\t 0. Exit \n\n\t Your choice: ";
222 switch (_getch())
223 {
224 // case '1' for the first program
225 case '1':
226 F_First_Program();
227 break;
228 // case '2' for the second program
229 case '2':
230 F_Second_Program();
231 break;
232 // case '0' to exit
233 case '0':
234 k = 1000;
235 break;
236 default:
237 cout << "\tYour choice is not available in Menu. \n\t Please try one more time.\n";
238 break;
239 }
240 }
241 cout << endl;
242 system("pause");
243 return 0;
244}
245
246// For outputing programs
247void F_First_Program()

Callers

nothing calls this directly

Calls 2

F_First_ProgramFunction · 0.70
F_Second_ProgramFunction · 0.70

Tested by

no test coverage detected