电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

学生选课管理系统c语言程序

学生选课管理系统c语言程序_第1页
1/18
学生选课管理系统c语言程序_第2页
2/18
学生选课管理系统c语言程序_第3页
3/18
#include〈stdio。h> #include#include〈string。h〉int N1,N2;struct couse * head1;struct student * head2;struct couse//课程信息结构体{ int num1;//课程编号char name1[20];//课程名称char type[20];//课程性质int hour;//总学时int teach;//上课学时int exp;//实验上机学时int credit;//学分int semester;//开课学期 int nelepeo;//课程已选人数int Melepeo; //课程上限 struct couse * next;};struct student//学生信息结构体{ int num2;//学号 char name2[20];//姓名int nelenum[50];//已选课程编号char nelename[10][20]; //已选名称 int nelen; //已选课程数量int score; //总学分int gainscore; //已获得的学分 struct student * next;};void manger();void student();void managementc();void managements();void manage();void main();void intoc() //存储课程信息{FILE * fp;struct couse * p;char filepath[30];printf("\t\t\t*****************************\n"); printf(”\n\t\t\t\t 欢迎使用此系统!\n"); printf("\t\t\t*****************************\n”);printf("输入路径:”);getchar();gets(filepath);if((fp=fopen(filepath,”w”))==NULL){printf("无法储存!");exit(0);}p=head1;while(p!=NULL){fprintf(fp,"%d%s%s%d%d%d%d%d%d%d\n",p—>num1,p->name1,p-〉type,p— 〉 hour , p- 〉 teach,p—>exp , p— 〉 credit , p—>semester , p— 〉 nelepeo,p—〉Melepeo);p=p—〉next;}fclose(fp);printf(”已储存入%s 文件!\n",filepath);}void keyboardc()//录入课程子函数(从键盘录入){struct couse *p1,*p2;N1=0;p1=p2=(struct couse*) malloc(sizeof(struct couse));printf("\t\t\t*****************************\n”);printf(”\n\t\t\t\t 欢迎使用此系统!\n”);printf(”\t\t\t*****************************\n”); printf(”编号\\名称\\性质\\总学时\\上课学时\\实验上机学时\\学分\\开课学期\\已选人数\\课程上限\n”);scanf(”%d %s %s %d %d %d %d %d %d %d”,&p1->num1,p1—...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

学生选课管理系统c语言程序

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部