| 213 | }; |
| 214 | |
| 215 | int 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 |
| 247 | void F_First_Program() |
nothing calls this directly
no test coverage detected