c语言学生选课系统(代码).docx

#includestdio.h #includestdlib.h #includestring.h int N1,N2; struct student { int num2; char name2[20]; int nelenum[50]; int nelen; struct student * next; }; struct course //所选课程编号 //所选课程学分和 int num1; //课程编 char name1[20]; char major[20]; char type[20]; int credit; int period; char teacher[20]; int people; struct course *next; }; struct course * head1; struct student * head2; void zhang() { //选此门课程的人数 //结构体指针 //从键盘录入课程信息 struct course *p1,*p2; N1=0; p1=p2=(struct course *)malloc(sizeof(struct course)); printf(课程编号\t课程名称\t主修\t课程性质\t学分\t课时\t教师\n); sea nf(%d%s%s%s%d%d%s,p1- num1,p1- name1,p1-majo

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档