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;
}

猜你喜欢

转载自blog.csdn.net/zitian246/article/details/80299860
今日推荐