我有一个模板类,例如继承的类是否继承嵌套的类?
template<class T,class Key>
class BinaryTree:{
public:
class node {};
}
,现在我想从类继承,例如:
class AVLTree : public Binary Tree
我被卡住的问题是这些功能我想在AVLTree中实现不识别节点。例如,让功能更
void rotateLL(node* n)
编译器说:
node has not been declared
我怎样才能解决这个问题?
对不起,我第一次问这里。我编辑了这个问题。 –
你错过了很重要的细节。 AVLTree也是模板类吗? – AnT