I have some class,e.g
and I want to define a pointer to the class node as a type . How to declare ?
I try typedef node<T>* nodeptr but it doesn't work,there'll be error .
Code:
template<class T> class node{ T key; node* next; };
I try typedef node<T>* nodeptr but it doesn't work,there'll be error .
Comment