ERROR C2995 使用类 模板 需要 模板 参数列表

来源:互联网 发布:淘宝千牛怎么开直通车 编辑:程序博客网 时间:2024/05/22 04:50

错误代码:

BTNode<T>* MakeLinked(const Vector& L)void Level(const BTNode* t)

原因是类声明时使用了类模板(如,tempale<class T> class vector{…};,)使用类时没有给类模板参数
修改后:

        BTNode<T>* MakeLinked(const Vector<T>& L)        void Level(const BTNode<T>* t)
阅读全文
0 0