weixin_44585751 2020-05-21 17:52 采纳率: 50%
浏览 784
已采纳

VC6.0--------------------Configuration: day1 - Win32 Debug-------------------- Compiling... Error spawning cl.exe day1.obj - 1 error(s), 0 warning(s)

#include <graphics.h>
#include <conio.h>

int main()
{
    initgraph(600,400);//创建一个宽600,高400像素的窗口
    getch();//在用户没有按下任意键时,会发生阻塞
    closegraph();//关闭窗口

我的代码没有问题啊,可是怎么也编译不过去,哪位大佬帮忙解决一下
==================以下是编译结果====================

return 0;

--------------------Configuration: day1 - Win32 Debug--------------------

Compiling...
Error spawning cl.exe

day1.obj - 1 error(s), 0 warning(s)

  • 写回答

1条回答 默认 最新

  • threenewbee 2020-05-21 19:14
    关注

    你安装easyx了没有?vc++本身没有graphic.h的

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已采纳回答 9月7日