R
Rach
Hi,
Is it possible for me to create a class Node that has a pointer to a class
Node. i.e.:
template <class T> class Node {
public:
Node (T t, int n) { ptrChild = t; nValue = n; };
private:
T* ptrChild;
int nValue;
};
How do I instantiate such class?
thanks much,
Rach
Is it possible for me to create a class Node that has a pointer to a class
Node. i.e.:
template <class T> class Node {
public:
Node (T t, int n) { ptrChild = t; nValue = n; };
private:
T* ptrChild;
int nValue;
};
How do I instantiate such class?
thanks much,
Rach