菜鸟请问迷宫问题调试
我把一本教材上的实例照抄无误输到vc++里,是经典的迷宫问题,就是一个店周围有八个方向,最后走出来输得是没有错误的,但是调试有很多错误,为什么呢
--------------------Configuration: maze - Win32 Debug--------------------
Compiling...
route.cpp
D:\My projects\maze\route.cpp(3) : error C2371: 'bool' : redefinition; different basic types
d:\my projects\maze\route.cpp(0) : see declaration of 'bool'
D:\My projects\maze\route.cpp(3) : error C2059: syntax error : 'constant'
D:\My projects\maze\route.cpp(3) : error C2143: syntax error : missing ';' before '}'
D:\My projects\maze\route.cpp(3) : error C2143: syntax error : missing ';' before '}'
D:\My projects\maze\route.cpp(38) : error C2677: binary '>' : no global operator defined which takes type 'enum bool' (or there is no acceptable conversion)
D:\My projects\maze\route.cpp(54) : error C2440: '=' : cannot convert from 'const bool' to 'enum bool'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
D:\My projects\maze\route.cpp(76) : error C2440: '=' : cannot convert from 'const bool' to 'enum bool'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
D:\My projects\maze\route.cpp(92) : error C2601: 'main' : local function definitions are illegal
D:\My projects\maze\route.cpp(100) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
maze.exe - 9 error(s), 0 warning(s)