#include<stdio.h>
#define MAXSIZE 100
typedef struct
{
int wxpn;
float coef;
}plilf;
typedef struct
{
plilf* student;//这是获取首地址位置,不算指针??。
int lengly;
}lll;
int main()
{
lll p;
p.lengly;
p.student->coef;//student 是指针
//用'.'是因为要是自己对自己也就是lll的结构体指针。而
//student是因为本身是plilf类型的指针而指向别的结构体用''->''.
return 0;
}
关于什么时候用‘.‘和‘->’
最新推荐文章于 2022-11-12 14:29:15 发布