欢迎来到天天文库
浏览记录
ID:12457383
大小:427.50 KB
页数:45页
时间:2018-07-17
《c语言学生管理系统(源代码)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、#include#include#include#include#defineM50constcharstrStudentFilePath[]="studentInfo.txt";constcharstrCourseFilePath[]="courseInfo.txt";typedefstructMyInt{intnum;structMyInt*next;}CourseNumList,ScoreList;structstudent{i
2、ntnum;charname[20];charsex;CourseNumList*courseNumList;//存放的是课程的序号ScoreList*courseScore;//与上一个列表相对应的课程的成绩intcourseSize;intave;}stu[M];typedefstructstudentStudent;intstuNum;//系统中存在的学生的记录数typedefstructCourse{intnumCourse;charname[20];charteacherName[20];struc
3、tCourse*next;}CourseList;CourseList*pCourse=NULL;//头指针CourseList*currentPoint=NULL;//工作指针/*********************************************************************************************************@函数名:Initialize@作用:初始化系统的显示标头@参数:@返回值:************************
4、*********************************************************************************/voidInitialize(){printf("tt********************************");printf("tt学生成绩管理系统--C语言版");printf("");printf("ttCopyRightMaode,YAN");printf("");printf("tt***
5、*****************************");}/*********************************************************************************************************@函数名:Exit@作用:当系统需要退出时,调用此函数停屏,与使用者交互@参数:@返回值:*********************************************************************
6、************************************/voidExit(){printf("inputanykeytoquit!");getch();exit(0);}voidSave();/*********************************************************************************************************@函数名:InputStudentInfo@作用:输入学生信息,并保存在内存中@参数:@返回
7、值:@创建日期:2012-05-13ByMaode,Yan*********************************************************************************************************/voidInputStudentInfo(){inti;charisSave;printf("开始输入学生信息,建立学生信息表:");printf("请输入学生人数:");scanf("%d",&stuNum);if(stuNum>M)
8、{printf("输入的学生数超过人数上线!系统退出!");Exit();}for(i=0;i
此文档下载收益归作者所有