| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1076 人关注过本帖
标题:菜鸟请问迷宫问题调试
只看楼主 加入收藏
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
快速回复:菜鸟请问迷宫问题调试
数据加载中...
 
   



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

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