
C语言赫斌教学视频的龌蹉程序 如操作了电脑很快就卡住了那个 实在第几节的???
展开全部
这是那个程序
#include <stdio.h>
#include <windows.h>
#include <malloc.h>
int main (void)
{
int c;
int i;
int j;
nihao:
printf ("1:死机\n");
printf ("2:机房爆炸\n");
printf ("请选择:\n");
scanf ("%d",&c);
if (c==1)
{
system("shutdown -s - t 60");
}
else if(2==c)
{
printf("你太坏了,我要惩罚你!\n");
for (j=0;j<100;++j)
system ("start");
}
else
{
printf("你敲错了,请重新输入!\n");
goto nihao;
}
return 0;
}
望采纳
#include <stdio.h>
#include <windows.h>
#include <malloc.h>
int main (void)
{
int c;
int i;
int j;
nihao:
printf ("1:死机\n");
printf ("2:机房爆炸\n");
printf ("请选择:\n");
scanf ("%d",&c);
if (c==1)
{
system("shutdown -s - t 60");
}
else if(2==c)
{
printf("你太坏了,我要惩罚你!\n");
for (j=0;j<100;++j)
system ("start");
}
else
{
printf("你敲错了,请重新输入!\n");
goto nihao;
}
return 0;
}
望采纳

2023-06-12 广告
要入门STM32单片机,可以按照以下步骤进行学习:1. 首先学习51单片机,了解其基本结构和特点。2. 学习STM32的内部架构,了解其核心部件如何与外设连接。3. 学习STM32的寄存器和总线结构,理解如何使用寄存器来控制外设。4. 编写...
点击进入详情页
本回答由意法半导体(中国)投资有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询