被逼无奈,请高手指点这个错误[ 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最会出这种晦涩的错误信息~~