结构体问题
#include<stdio.h>typedef struct student
{
int a;
}stu;
typedef struct Node
{
stu date;
struct Node *p;
}node,*LinkList;
int main()
{
LinkList head;
scanf("%d",&head->date->a);
printf("%d\n",head->date->a);
return 0;
}
scanf("%d",&head->date->a);
printf("%d\n",head->date->a);总是提示这两行报错
((*head).date.a这样就不错了 这是为什么?