c语言 2018-05-29
2018-05-29 本文已影响0人
Andydufresnegh
c语言文件结构
TIM截图20180529104103.png(-> and .)
定义结构体指针,访问成员时就用->
定义结构体变量,访问成员时就用.
例如:
typedef struct{
int * elem;
int length ;
}Sqlist;
Sqlist *p;
Sqlist o;
p->elem; && o.elem
定义结构体指针,访问成员时就用->
定义结构体变量,访问成员时就用.
例如:
typedef struct{
int * elem;
int length ;
}Sqlist;
Sqlist *p;
Sqlist o;
p->elem; && o.elem