今天学习了指针,结构体
一 结构体
struct关键字,应对复杂数据类型的处理,
struct student
{
int age;
char name;
double grade;
};
二 指针
指针在结构体中的引用
struct student a;
struct student* p=&a;
指针调用的方法为 p->age
三 大学的学习收获
语言 数据结构 计算机网络 计算机系统
今日格言
切勿心急气躁,明白大道至简,一点点来
微信扫一扫
今天学习了指针,结构体
一 结构体
struct关键字,应对复杂数据类型的处理,
struct student
{
int age;
char name;
double grade;
};
二 指针
指针在结构体中的引用
struct student a;
struct student* p=&a;
指针调用的方法为 p->age
三 大学的学习收获
语言 数据结构 计算机网络 计算机系统
今日格言
切勿心急气躁,明白大道至简,一点点来
相关推荐