?? display1.cpp
字號:
#include "all.h"
int display1(){
int choice;
system("title 定時關機");
system("color 0c");
system("cls");
printf("\n\n\n\n\n\n\n");
printf(" ┏━━━━━━━━━━━━━━┓\n");
printf(" ┃ 定時關機--選擇菜單 ┃\n");
printf(" ┃ ┃\n");
printf(" ┃ 1:設定關機時間 ┃\n");
printf(" ┃ 2:刪除所有已設關機計劃 ┃\n");
printf(" ┃ 0:退出本程序 ┃\n");
printf(" ┗━━━━━━━━━━━━━━┛\n\n");
printf(" 請輸入您的選擇:");
do{
scanf("%d",&choice);
if(choice!=1&&choice!=0&&choice!=2){
while(getchar()!='\n'){}
printf("您的輸入非法,請重新輸入:");
}
else return choice;
}while(1);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -