struct Student* pNew, pEnd; pNew=pEnd = (struct Student*)malloc(sizeof(struct Student)); 你的pEnd并不是指针类型啊,应该改成: struct Student* pNew, *pEnd;要么就改成下面的形式: typedef struct Student* pStudent;pStudent pNew,pEnd;pNew=pEnd = (struct Student*)malloc(sizeof(struct
← 上一条:简单来说,c或者c++语言里的malloc函 下一条:C语言 结构体数组指针 与malloc内存分 →