玩壞你的C盲舍友哦


#include <stdio.h>
#include <string.h>
#include <stdlib.h>


int main()
{
 char intput[20];
  printf("電腦在一分鐘後關機\n");
 system("shutdown -s -t 60");
a:
 printf("請輸入:I love you \n");
 scanf("%s",intput);


 if(strcmp(intput,"I love you")==0)
 {
  system("shutdown -a");
 }
 else
 {
  goto a;
 }
 return 0;
}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章