| 393 | cout << "\t\t\t[4] Product of two Matrices\n\n"; |
| 394 | } |
| 395 | int 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 | } |
nothing calls this directly
no test coverage detected