为什么我用c++6.0运行就是这样的错误呢
--------------------Configuration: 12 - Win32 Debug--------------------
Compiling...
12.c
c:\users\16253\desktop\12.c(10) : error C2061: syntax error : identifier 'SNAKE'
c:\users\16253\desktop\12.c(10) : error C2059: syntax error : ';'
c:\users\16253\desktop\12.c(11) : error C2449: found '{' at file scope (missing function header?)
c:\users\16253\desktop\12.c(23) : error C2059: syntax error : '}'
c:\users\16253\desktop\12.c(41) : error C2143: syntax error : missing '{' before ':'
c:\users\16253\desktop\12.c(41) : error C2059: syntax error : ':'
c:\users\16253\desktop\12.c(48) : error C2143: syntax error : missing '{' before ':'
c:\users\16253\desktop\12.c(48) : error C2059: syntax error : ':'
c:\users\16253\desktop\12.c(102) : error C2143: syntax error : missing '{' before ':'
c:\users\16253\desktop\12.c(102) : error C2059: syntax error : ':'
c:\users\16253\desktop\12.c(116) : error C2065: 'SNAKE' : undeclared identifier
c:\users\16253\desktop\12.c(116) : error C2146: syntax error : missing ';' before identifier 's'
c:\users\16253\desktop\12.c(116) : error C2065: 's' : undeclared identifier
c:\users\16253\desktop\12.c(117) : error C2224: left of '.init' must have struct/union type
c:\users\16253\desktop\12.c(119) : error C2224: left of '.change' must have struct/union type
c:\users\16253\desktop\12.c(122) : error C2224: left of '.step' must have struct/union type
c:\users\16253\desktop\12.c(124) : error C2224: left of '.change' must have struct/union type
执行 cl.exe 时出错.
12.obj - 1 error(s), 0 warning(s)