typedef struct Listnode
{
char nodename[10];
int  nodeLenth;
struct Listnode* nextNode;}Listnode;  //链表节点CTypedPtrList<CObList,Listnode *> *cNodeList;
while(head != 0)
{
cNodeList->AddHead(head);//head为链表头结点    //出错
head = head->nextNode;
}我想通过这样的方式给cNodeList赋值,为什么会出错呢,还有怎么给cNodeList赋初值呢,请大家指教下,谢谢!