永发信息网

能帮我解决下C语言的问题吗?

答案:3  悬赏:70  手机版
解决时间 2021-06-02 03:43
  • 提问者网友:兔牙战士
  • 2021-06-01 16:00
能帮我解决下C语言的问题吗?
最佳答案
  • 五星知识达人网友:平生事
  • 2021-06-01 17:07

谁说编译没错?


b.cpp:2:22: graphics.h: No such file or directory
b.cpp:34: error: `main' must return `int'
b.cpp: In function `void Init()':
b.cpp:42: error: `DETECT' undeclared (first use this function)
b.cpp:42: error: (Each undeclared identifier is reported only once for each func
tion it appears in.)
b.cpp:43: error: `initgraph' undeclared (first use this function)
b.cpp:44: error: `cleardevice' undeclared (first use this function)
b.cpp: In function `void DrawK()':
b.cpp:49: error: `setcolor' undeclared (first use this function)
b.cpp:50: error: `SOLID_LINE' undeclared (first use this function)
b.cpp:50: error: `THICK_WIDTH' undeclared (first use this function)
b.cpp:50: error: `setlinestyle' undeclared (first use this function)
b.cpp:53: error: `rectangle' undeclared (first use this function)
b.cpp: In function `void GamePlay()':
b.cpp:64: error: `randomize' undeclared (first use this function)
b.cpp:74: error: `kbhit' undeclared (first use this function)
b.cpp:88: error: `GREEN' undeclared (first use this function)
b.cpp:88: error: `setcolor' undeclared (first use this function)
b.cpp:89: error: `rectangle' undeclared (first use this function)
b.cpp:133: error: `delay' undeclared (first use this function)
b.cpp:140: error: break statement not within loop or switch
b.cpp:141: error: `bioskey' undeclared (first use this function)
b.cpp:143: error: break statement not within loop or switch
b.cpp: At global scope:
b.cpp:158: error: expected declaration before '}' token

全部回答
  • 1楼网友:煞尾
  • 2021-06-01 20:00
能 为了防止不通过审核,我就多打几个字吧
  • 2楼网友:往事埋风中
  • 2021-06-01 18:35

什么问题 又不说....

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯