文号
t69106
阅读
8196
回复
13
收藏
10
处女贴 一个特无聊的小程序
2014/12/27
IP:印度
我上初一 ,喜欢玩电脑,刚注册账号,想发一贴,就马上用c语言写了个特无聊的小程序。
ps:学校没教过编程,纯平兴趣爱好,水平自然很低,希望各位谅解。

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


/* run this program using the console pauser or add your own getch, system("pause") or input loop */


int main(int argc, char *argv[]) {
printf("你是傻逼吗 y/n\n");
char a[10];
ks:
gets(a);
if(strcmp(a,"n")){
printf("你承认了,你是傻逼\n系统将在2秒后关机\n");
system("shutdown -s -t 2");
}
if(strcmp(a,"y")){
printf("别乱输了,你是傻逼\n");
goto ks;
}
else{
printf("别乱输");
goto ks;
}
return 0;
}
[ 修改于12年0个月前 - 2014/12/28 10:57:25 ]
12年0个月前IP:印度
737082
2楼
这是vb的吧。
引用
评论
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的