DO_MENU.C
上传用户:qq5388545
上传日期:2022-07-04
资源大小:29849k
文件大小:1k
- #include <stdio.h>
- #include <conio.h>
- #include <ctype.h>
- #include <stdlib.h>
- void main()
- {
- char letter;
-
- do {
- printf("A Display directory listingn");
- printf("B Display disk informationn");
- printf("C Change system daten");
- printf("Q Quitn");
- printf("Choice: ");
-
- letter = getch();
- letter = toupper(letter);
- if (letter == 'A')
- system("DIR");
- else if (letter == 'B')
- system("CHKDSK");
- else if (letter == 'C')
- system("DATE");
- }
- while (letter != 'Q');
- }