回复 8楼 wanglianyi1
还是不行啊!Compiling...
1234.c
C:\Users\16253\Desktop\1234.c(33) : error C2143: syntax error : missing ')' before '*'
C:\Users\16253\Desktop\1234.c(33) : error C2081: 'ssnake' : name in formal parameter list illegal
C:\Users\16253\Desktop\1234.c(33) : error C2143: syntax error : missing '{' before '*'
C:\Users\16253\Desktop\1234.c(33) : error C2059: syntax error : ')'
C:\Users\16253\Desktop\1234.c(34) : error C2054: expected '(' to follow 'snp'
C:\Users\16253\Desktop\1234.c(57) : error C2143: syntax error : missing ')' before '*'
C:\Users\16253\Desktop\1234.c(57) : error C2143: syntax error : missing '{' before '*'
C:\Users\16253\Desktop\1234.c(57) : error C2059: syntax error : 'type'
C:\Users\16253\Desktop\1234.c(57) : error C2059: syntax error : ')'
C:\Users\16253\Desktop\1234.c(90) : error C2065: 'bool' : undeclared identifier
C:\Users\16253\Desktop\1234.c(90) : error C2146: syntax error : missing ';' before identifier 'pf'
C:\Users\16253\Desktop\1234.c(90) : error C2065: 'pf' : undeclared identifier
C:\Users\16253\Desktop\1234.c(90) : error C2065: 'false' : undeclared identifier
C:\Users\16253\Desktop\1234.c(91) : error C2065: 'ssnake' : undeclared identifier
C:\Users\16253\Desktop\1234.c(91) : error C2146: syntax error : missing ';' before identifier 'sn'
C:\Users\16253\Desktop\1234.c(91) : error C2065: 'sn' : undeclared identifier
C:\Users\16253\Desktop\1234.c(91) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(91) : error C2059: syntax error : '{'
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(127) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(127) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(129) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(129) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(129) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(129) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(132) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(132) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(133) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(133) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(133) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(133) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(135) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(135) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(135) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(135) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(143) : warning C4013: 'rndapple' undefined; assuming extern returning int
C:\Users\16253\Desktop\1234.c(152) : warning C4013: 'drawmap' undefined; assuming extern returning int
C:\Users\16253\Desktop\1234.c(159) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
1234.obj - 1 error(s), 0 warning(s)