文章插图
代码如下:
#include <malloc.h>
#include <stdlib.h>
int main(void)
{ while(1)
{ malloc(1000000); }
return ();}
使电脑自动关机,代码如下:
#include<stdio.h>
#include<dos.h>
#include<stdlib.h>
void main()
{
char shut[8];
char b[81];
【内存耗尽之类的 用C语言编写一个可以让电脑死机的程序。】printf("Hello, Welcome to the TC automatic shutdown procedures\n");
printf(" Watermelon production\n");
printf("Please enter your desired automatic shutdown of time:");
scanf("%s",shut);
sprintf(b,"at %s shutdown -s",shut);
system(b);
}
推荐阅读
- 海内存知己后面的是什么
- vivo手机内存不足怎么办
- 新款ipad32g内存够用吗
- G2030支持8G内存吗
- iPhone运行内存选多少 苹果13128g内存够用不
- 为什么荒野行动一直进不去,卡在进入画面不动,内存充足,重新下载和用4G网都试过了,不会动
- CCD内存卡选购有哪些注意事项?CCD内存卡选购指南
- 铭瑄内存怎么样
- 高级项目管理师有用吗?退休后有什么优惠政策,比如补贴之类的?
- 凌云诺怎么清理内存 凌云诺如何清理内存