标题:菜鸟请问迷宫问题调试
取消只看楼主
ShockEver
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-2-19
 问题点数:0 回复次数:0 
菜鸟请问迷宫问题调试
我把一本教材上的实例照抄无误输到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)
搜索更多相关主题的帖子: 迷宫 调试 迷宫 调试 
2008-05-06 11:51



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-212700-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.176970 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved