读书人

被逼无奈请这个异常[ ISO C++ forb

发布时间: 2012-02-23 22:01:36 作者: rapoo

被逼无奈,请高手指点这个错误[ ISO C++ forbids declaration of ‘CQueue’ with no type]
被逼无奈,请高手指点这个错误[ 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


[解决办法]
你在哪里定义了CQueue这个类?
[解决办法]
前面没有类型,或者是没有定义
DEV-CPP最会出这种晦涩的错误信息~~

读书人网 >C语言

热点推荐