为什么结构体不能用这中写法
#include "stdlib.h"#include "stdio.h"
struct student
{
int number;
double score;
char name[20];
struct student *next;
};
int main()
{
typedef struct student NODE;
/* NODE a;a = {1001,80,"guosheng"}; */ NODE b,c;
NODE *head,*p;
NODE a;
/*a.number[20] = {guosheng1987};*/
}
这两处加注释的都不可以为什么