1. 程式人生 > >C語言小遊戲系列—惡搞關機軟體,親測QAQ

C語言小遊戲系列—惡搞關機軟體,親測QAQ

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
int main()
{
    char write[100];
    system( "shutdown -s -t 60");
th:
    printf( "快說你愛鳳姐!不然就關機!\n" );
    scanf( "%s", write);
    if (strcmp(write, "我愛鳳姐" ) == 0)
    {
        printf( "哈哈,你這個變態~\n" );
        system( "shutdown -a");
        system("pause");
    }
    else
    {
        printf( "不想說?等著關機吧哼哼!\n" );
        goto th;
    }
    return 0;
}