?? main.cpp
字號:
#include "all.h"
using namespace std;
int main(int argc, char *argv[])
{
char *shuttime=(char*)malloc(100*sizeof(char));
char *temp=(char*)malloc(100*sizeof(char));
int choice;
while((choice=display1())!=0){
if(choice==1){
while(true){
display2(shuttime);
temp[0]='\0';
strcat(temp,shuttime);
if(execute(shuttime)){
printf("\n 已經設置關機時間為 %s\n\n",temp);
stopshut(shuttime);
system("pause");
break;
}
else{
printf("輸入有誤! ");
system("pause");
}
}
}
else if(choice==2){
delall();
system("pause");
}
}
delete[]shuttime;
delete[] temp;
return EXIT_SUCCESS;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -