|
发表于 2020-8-2 18:38:54
|
显示全部楼层
--------------------Configuration: b - Win32 Debug--------------------
Compiling...
b.c
D:\Microsoft Visual Studio\MyProjects\b\b.c(15) : error C2079: 's' uses undefined struct 'Snakes'
D:\Microsoft Visual Studio\MyProjects\b\b.c(15) : warning C4133: 'initializing' : incompatible types - from 'int *' to 'struct Snakes *'
D:\Microsoft Visual Studio\MyProjects\b\b.c(16) : error C2079: 'f' uses undefined struct 'Food'
D:\Microsoft Visual Studio\MyProjects\b\b.c(16) : warning C4133: 'initializing' : incompatible types - from 'int *' to 'struct Food *'
D:\Microsoft Visual Studio\MyProjects\b\b.c(132) : warning C4047: '=' : 'int ' differs in levels of indirection from 'int *'
D:\Microsoft Visual Studio\MyProjects\b\b.c(133) : warning C4047: '=' : 'int ' differs in levels of indirection from 'int *'
D:\Microsoft Visual Studio\MyProjects\b\b.c(249) : warning C4013: 'GameOver' undefined; assuming extern returning int
D:\Microsoft Visual Studio\MyProjects\b\b.c(341) : error C2371: 'GameOver' : redefinition; different basic types
执行 cl.exe 时出错.
b.obj - 1 error(s), 0 warning(s)
为什么我的会出错,怎么修改呢? |
|