这段程序无法运行的原因是缺少一个头文件 <conio.h>。在代码中使用了 getch() 函数,而这个函数属于 <conio.h> 头文件中的函数。因此需要在程序开头添加 #include <conio.h>

以下编程无法运行是为什么#include stdioh#include stdlibh#include timeh#include windowshint main char text = 孔晴绝世大美女; int x = 40; 初始位置为屏幕中间 int y = 12; int color = 4; 初始颜色为绿色 srandunsigned timeNUL

原文地址: https://www.cveoy.top/t/topic/XL1 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录