火龙果C语言重难点精选创新.pptVIP

  • 6
  • 0
  • 约1.34万字
  • 约 41页
  • 2016-02-26 发布于湖北
  • 举报
#includestdio.h #includestring.h #define FORMAT %d\n%s\n%f\n%f\n%f\n struct student { int num; char name[20]; float score[3]; } xinke={04,fuguoqing,88,89,95}; void main() { void print(struct student *stu); struct student *p; p=xinke; print(p); 或则直接为print(xinke); } void print(struct student *stu) { printf( FORMAT,(*stu).num,(*stu).name,(*stu).score[0],(*stu).score[1],(*stu).score[2]); } 共用体 12.3 一、共用体类型及其变量的定义 union 共用体名 {类型名1 成员名1; 类型名2 成员名2; ... ... 类型名n 成员名n; }; 其

文档评论(0)

1亿VIP精品文档

相关文档