Please help!!! How do you declare this variable?
I have two classes, LinkedList and AvlTree. Now I want to create a LinkedList of Avl Trees, but somehow I can't declare it.
I tried this: LinkedList table, but it didn't work. The error shows "error C3203: 'AvlTree' : class template invalid as template argument for template parameter 'Comparable', expected a real type".
To fix this, I tried: LinkedList
I tried this: LinkedList
To fix this, I tried: LinkedList
[Error: Irreparable invalid markup ('<avltree<int>') in entry. Owner must fix manually. Raw contents below.]
I have two classes, LinkedList and AvlTree. Now I want to create a LinkedList of Avl Trees, but somehow I can't declare it.
I tried this: LinkedList<AvlTree> table, but it didn't work. The error shows "error C3203: 'AvlTree' : class template invalid as template argument for template parameter 'Comparable', expected a real type".
To fix this, I tried: LinkedList<AvlTree<int>> table, and got "error C2947: expecting '>' to terminate template-argument-list, found '>>'".
What should I do now? Please help. Thanks.
I tried this: LinkedList<AvlTree> table, but it didn't work. The error shows "error C3203: 'AvlTree' : class template invalid as template argument for template parameter 'Comparable', expected a real type".
To fix this, I tried: LinkedList<AvlTree<int>> table, and got "error C2947: expecting '>' to terminate template-argument-list, found '>>'".
What should I do now? Please help. Thanks.
