| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
高端软件开发 = 年薪十万不是梦赛孚耐:软件保护加密专家身份认证令牌USB KEY 
共有 261 人关注过本帖
标题:菜鸟请问迷宫问题调试
收藏  订阅  推荐  打印
ShockEver
Rank: 1
等级:新手上路
帖子:2
积分:124
注册:2008-2-19
菜鸟请问迷宫问题调试

我把一本教材上的实例照抄无误输到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-5-6 11:51
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.043914 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved