#includestruct student{long num;float score;struct student *
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/09/25 00:31:40
#include
struct student
{
long num;
float score;
struct student *next;
};
int main()
{struct student a,b,*p;
a.num=231231;
b.num=311;
b.score=2.0;
a.score=1.0;
a.next=&b;
p=a->next; error:invalid type argument of '->' (have 'struct student')
printf("%ld",p->num);
return 0;
}
如题,求教大神出错原因,为什么不能用->,我知道改成点可以通过编译
struct student
{
long num;
float score;
struct student *next;
};
int main()
{struct student a,b,*p;
a.num=231231;
b.num=311;
b.score=2.0;
a.score=1.0;
a.next=&b;
p=a->next; error:invalid type argument of '->' (have 'struct student')
printf("%ld",p->num);
return 0;
}
如题,求教大神出错原因,为什么不能用->,我知道改成点可以通过编译
指针才用->
如struct student a,*p;
对于a用点,对于p指针用-
如struct student a,*p;
对于a用点,对于p指针用-
struct student{int num,int score}stu; struct student *p;stu
#include struct student { long num; char name[10]; int age;
C语言 中&和 请参照这个程序#include#define NULL 0struct student{int num;
struct student{int num;char name[20];}stu1;stu1.name="Li Min
void input(struct student stu[]);//函数声明
struct student*fun(struck student *a)怎么解释啊,struct fun(struck
一道C语言的结构题#includestruct student{\x05char name[40];\x05long l
struct student **p = &student; 这句话怎么解释?为什么是两个**
To determine a student’s overall test score for the
struct student **p = &studentt; 这句话怎么解释?为什...
void printf (struct student *head)的意思 各个单词在剧中代表的类型意思
struct student **p = &studentt; 这句话怎么解释?为什么是两个**