#include #include #include #include #include main() { char op; clrscr(); while(1) { printf("\nTemperature plotting :\n"); printf("\tinsert F to file :\n"); printf("\tinsert E to edit :\n"); printf("\tinsert X to exit :\n\n\n\n\n\n"); op=getch(); switch(op) { clrscr(); case 'f': printf("Temperature plotting program :\n"); printf("\tinsert E to new :\n"); printf("\tinsert O to open :\n"); printf("\tinsert S to save :\n"); printf("\tinsert A to save as :\n"); printf("\tinsert L to save all :\n\n\n\n\n\n"); op=getch(); switch(op) { case 'e': printf("new"); break; case 'o': printf("open"); break; case 's': printf("save"); break; case 'a': printf("save as"); break; case 'l': printf("save all"); break; } break; case 'e': printf("Temperature plotting:\n"); printf("\tinsert U to undo :\n"); printf("\tinsert R to redo :\n\n\n\n\n"); op=getch(); switch(op) { case 'u': printf("undo"); break; case 'r': printf("redo"); break; } break; case 'x': exit(0); break; } getch(); return 0; } }