兴化词 兴化词
你你你你
关注数: 25 粉丝数: 34 发帖数: 798 关注贴吧数: 10
新手求教,写的一个链表,老出问题,高手帮下忙 1>------ 已启动生成: 项目: ChainNode, 配置: Debug Win32 ------1>正在编译...1>stdafx.cpp1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(21) : error C2143: 语法错误 : 缺少“;”(在“<”的前面)1> d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(26): 参见对正在编译的类 模板 实例化“ChainNode<T>”的引用1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(21) : error C2433: “Chain”: 不允许在数据声明中使用“friend”1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(21) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(21) : error C2238: 意外的标记位于“;”之前1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(22) : error C2143: 语法错误 : 缺少“;”(在“<”的前面)1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(22) : error C2433: “ChainIterator”: 不允许在数据声明中使用“friend”1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(22) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(22) : error C2238: 意外的标记位于“;”之前1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(30) : error C2143: 语法错误 : 缺少“;”(在“<”的前面)1> d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(41): 参见对正在编译的类 模板 实例化“Chain<T>”的引用1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(30) : error C2433: “ChainIterator”: 不允许在数据声明中使用“friend”1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(30) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(30) : error C2238: 意外的标记位于“;”之前1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(44) : error C2143: 语法错误 : 缺少“;”(在“<”的前面)1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(44) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(44) : error C2086: “int Chain”: 重定义1> d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(21) : 参见“Chain”的声明1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(44) : error C2988: 不可识别的模板声明/定义1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(44) : error C2059: 语法错误 : “<”1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(44) : error C2588: “::~Chain”: 非法的全局 析构函数1>d:\users\joy\documents\visual studio 2008\projects\chainnode\chainnode\stdafx.h(44) : fatal error C1903: 无法从以前的错误中恢复;正在停止编译1>生成日志保存在“file://d:\Users\joy\Documents\Visual Studio 2008\Projects\ChainNode\ChainNode\Debug\BuildLog.htm”1>ChainNode - 19 个错误,0 个警告========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ========== 老是这些问题,看的我莫名其妙,高手帮下忙,留个QQ号
1 下一页