数据的结构预备知识.pptVIP

  • 0
  • 0
  • 约1.47千字
  • 约 29页
  • 2019-07-09 发布于湖北
  • 举报
1.指针 2.结构体 3.typedef 4.malloc函数;1 .地址和指针;变量的地址;指针(pointer);以一个int型变量为例;声明一个指针;给指针变量赋值;通过指针获得变量值;1;读程序,判断结果;程序结果是?;2 结构体;例 struct student { int num; char name[20]; char sex; int age; float score; char addr[30]; }; ;例 struct student { int num; char name[20]; char sex; int age; float score; char addr[30]; }; struct student stu1,stu2; ;定义结构体类型的同时定义

文档评论(0)

1亿VIP精品文档

相关文档