Posted by Mike on July 18, 2000 at 19:17:07:
In class, and on the web, you give
struct NodeType {
int i;
NodeType *Next;
};
Ok, I got no quams with this. However, in class you also defined a new variable like this (unless I copied wrong):
NodeType a;
a = new NodeType;
The book does something similar:
NodeType* a = NULL;
a = new NodeType;
However, I can't get either to compile. However, this does:
NodeType* Head = new NodeType;
I was wondering, can I assume that the above is a Head that points to nothing (not even NULL)?
Also, is