被逼无奈,请高手指点这个错误[ ISO C++ forbids declaration of ‘CQueue’ with no type]

flycsdn 2007-02-07 04:45:51
被逼无奈,请高手指点这个错误[ ISO C++ forbids declaration of ‘CQueue’ with no type]


我的.h文件里面有一个:
……
CQueue * m_pParent;
……

提示错误就是:NShortPath.h:47: error: ISO C++ forbids declaration of ‘CQueue’ with no type
...全文
249 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
woso 2007-02-08
  • 打赏
  • 举报
回复
呵呵,我猜是你的cqueue定义的时候少了分号
class CQueue
{
};
晨星 2007-02-07
  • 打赏
  • 举报
回复
CQueue应该是个模板,你少了模板参数。

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧