能帮我解决下C语言的问题吗?
- 提问者网友:兔牙战士
- 2021-06-01 16:00
- 五星知识达人网友:平生事
- 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
什么问题 又不说....