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

Function main22

Lab_09/Source1.cpp:395–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 cout << "\t\t\t[4] Product of two Matrices\n\n";
394}
395int main22()
396{
397 main_menu_view();
398 cout << "\t\t\tYOUR CHOICE: ";
399 string user_choice;
400 cin >> user_choice;
401 // validating the user input
402 if (user_choice == "1" || user_choice == "2" || user_choice == "3" || user_choice == "4")
403 {
404 if (user_choice == "1")
405 read_display();
406 else if (user_choice == "2")
407 transpose();
408 else if (user_choice == "3")
409 sum_matrices();
410 else if (user_choice == "4")
411 product();
412 }
413 else
414 {
415 system("cls"); // function for the clearing the screen of console
416 cout << "\t\tYou have inputted wrong number, please try again!\n";
417 main();
418 }
419
420 return 0;
421}

Callers

nothing calls this directly

Calls 6

read_displayFunction · 0.85
transposeFunction · 0.85
sum_matricesFunction · 0.85
productFunction · 0.85
main_menu_viewFunction · 0.70
mainFunction · 0.70

Tested by

no test coverage detected