欢迎来到天天文库
浏览记录
ID:57657559
大小:38.80 KB
页数:13页
时间:2020-08-30
《学生管理系统源代码.docx》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include〈iostream>#include<stdlib、h>?#include<string、h>#include2、);?voiddelete_Name(chartarName[]);??voidInfo_modify();?voidmodifyRecord();voidmodify_Num(int);voidmodify_Name(char[]);?voidInfo_query();voidqueryRecord();?voidquery_Num(int);?voidquery_Name(char[]);??voiddisplay();??voidquit();?voidmenu_CMD();??char*su3、bject[SUBJECT_NUM]=structSTUDENT?{intnum;charname[20];?charsex;floatscore[SUBJECT_NUM];};?//structSTUDENTstu[LEN+1];??//STUDENT*record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);??intstaticstuNum=0;//?STUDENT*record=(STUDENT*)malloc(sizeof(STUDENT)*IN4、IT_SIZE);;?intmain()?{?//record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);?//STUDENT*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]、score5、[1]=90、0;record[1]、score[2]=95、0;?record[2]、num=1002;?strcpy(record[2]、name,"Jerry");record[2]、sex=’M';?record[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’;re6、cord[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)?{?cin>>targetNum;inttargetNum;?cout?modify_Num(targetNum);?cout<7、in>>targetName;modify_Name(targetName);?cout<8、<〈”"<
2、);?voiddelete_Name(chartarName[]);??voidInfo_modify();?voidmodifyRecord();voidmodify_Num(int);voidmodify_Name(char[]);?voidInfo_query();voidqueryRecord();?voidquery_Num(int);?voidquery_Name(char[]);??voiddisplay();??voidquit();?voidmenu_CMD();??char*su
3、bject[SUBJECT_NUM]=structSTUDENT?{intnum;charname[20];?charsex;floatscore[SUBJECT_NUM];};?//structSTUDENTstu[LEN+1];??//STUDENT*record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);??intstaticstuNum=0;//?STUDENT*record=(STUDENT*)malloc(sizeof(STUDENT)*IN
4、IT_SIZE);;?intmain()?{?//record=(STUDENT*)malloc(sizeof(STUDENT)*INIT_SIZE);?//STUDENT*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
5、[1]=90、0;record[1]、score[2]=95、0;?record[2]、num=1002;?strcpy(record[2]、name,"Jerry");record[2]、sex=’M';?record[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’;re
6、cord[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)?{?cin>>targetNum;inttargetNum;?cout?modify_Num(targetNum);?cout<7、in>>targetName;modify_Name(targetName);?cout<8、<〈”"<
7、in>>targetName;modify_Name(targetName);?cout<8、<〈”"<
8、<〈”"<
此文档下载收益归作者所有