请问出了什么问题
#include<iostream.h>
#include<stdlib.h>
#define OVERFLOW 0
typedef struct LNode
{
int data;
struct LNode *next;
}LNode, *LinkList;
void CreateList(LinkList &L)
{//逆位序输入
LinkList point;
int n;//链表的结点数
L = (LinkList)malloc(sizeof(LNode));
L->next = NULL;
if(!L)
exit(OVERFLOW);//建立头结点
cout <<"请输入链表的长度:";
cin >>n;
cout <<"请输入链表的结点元素:";
for(int i=0; i<n; i++)
{//逆位序输入
point = (LinkList)malloc(sizeof(LNode));
cin>>point->data;
point->next = L->next;
L->next = point;
}
}
void PrintList(LinkList &L)
{//打印
LinkList point;
if(L->next = NULL)//当链表为空
exit(OVERFLOW);
point = L->next;
while(point)
{//打印
cout<<point->data;
point = point->next;
}
cout <<"已打印!" <<endl;
}
void main()
{
LinkList L;
CreateList(L);
PrintList(L);
}