C 学生成绩管理系统.docVIP

  • 0
  • 0
  • 约9.12千字
  • 约 9页
  • 2020-12-27 发布于黑龙江
  • 举报
PAGE PAGE 7 #includeiostream.h #includestdlib.h #includestdio.h #includemalloc.h /* 书中的常量定义 */ #define Null 0 #define LEN sizeof (struct student)/* 定义了一个学生的结构体 */ struct student { char *class_0,/*班级*/*name;/* 姓名 */ int num;/* 学号 */ float Elec,c_prog,Media,Eng,Math,Sport,Polity;/*学科*/ struct student *next;/*定义一个结构体的指针*/ }; struct student *creat() { struct student *head; struct student *p,*r; p=(struct student*)malloc(LEN); head=p; p-next=Null; r=p; p=(struct student*)malloc(LEN); p-class_0=网络30331; p-num=3033101; p-name=马云飞; p-Elec=80; p-c_prog=70;

文档评论(0)

1亿VIP精品文档

相关文档