欢迎来到天天文库
浏览记录
ID:50668379
大小:58.00 KB
页数:21页
时间:2020-03-13
《学生管理系统源代码.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include#include#include#include#defineINIT_SIZE10#defineINCRE_SIZE10#defineSUBJECT_NUM3#defineLEN3voidshow_Start();voidshow_Table();voidaddRecord();voidInfo_delete();voiddeleteRecord();voiddelete_Num(int);voiddelete_Name(chartar
2、Name[]);voidInfo_modify();voidmodifyRecord();voidmodify_Num(int);voidmodify_Name(char[]);voidInfo_query();voidqueryRecord();voidquery_Num(int);voidquery_Name(char[]);voiddisplay();voidquit();voidmenu_CMD();char*subject[SUBJECT_NUM]=structSTUDENT{intnum;charname[20];cha
3、rsex;floatscore[SUBJECT_NUM];};//structSTUDENTstu[LEN+1];//STUDENT*record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);intstaticstuNum=0;//STUDENT*record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);;intmain(){//record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);//STUDEN
4、T*record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);/*record[1].num=1001;strcpy(record[1].name,"Jason");record[1].sex='M';record[1].score[0]=85.0;record[1].score[1]=90.0;record[1].score[2]=95.0;record[2].num=1002;strcpy(record[2].name,"Jerry");record[2].sex='M';record
5、[2].score[0]=85.0;record[2].score[1]=90.0;record[2].score[2]=95.0;record[3].num=1003;strcpy(record[3].name,"Jessie");record[3].sex='F';record[3].score[0]=85.0;record[3].score[1]=90.0;record[3].score[2]=95.0;*//*Info_modify();intkey;cout>key;if(key==1){inttargetNum
6、;coutcin>>targetNum;modify_Num(targetNum);cout<>targetName;modify_Name(targetName);cout<7、************************"<8、ubject[2];cout<
7、************************"<8、ubject[2];cout<
8、ubject[2];cout<
此文档下载收益归作者所有