学生管理系统源代码文档格式.docx

上传人:b****4 文档编号:17093087 上传时间:2022-11-28 格式:DOCX 页数:23 大小:18.20KB
下载 相关 举报
学生管理系统源代码文档格式.docx_第1页
第1页 / 共23页
学生管理系统源代码文档格式.docx_第2页
第2页 / 共23页
学生管理系统源代码文档格式.docx_第3页
第3页 / 共23页
学生管理系统源代码文档格式.docx_第4页
第4页 / 共23页
学生管理系统源代码文档格式.docx_第5页
第5页 / 共23页
点击查看更多>>
下载资源
资源描述

学生管理系统源代码文档格式.docx

《学生管理系统源代码文档格式.docx》由会员分享,可在线阅读,更多相关《学生管理系统源代码文档格式.docx(23页珍藏版)》请在冰豆网上搜索。

学生管理系统源代码文档格式.docx

voidquery_Name(char[]);

voiddisplay();

voidquit();

voidmenu_CMD();

char*subject[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)*INIT_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[1]=90.0;

record[1].score[2]=95.0;

record[2].num=1002;

strcpy(record[2].name,"

Jerry"

record[2].sex='

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,"

Jsie"

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<

cin>

>

key;

if(key==1)

{

inttargetNum;

cout

targetNum;

modify_Num(targetNum);

<

endl;

display();

}

if(key==2)

chartargetName[20];

targetName;

modify_Name(targetName);

if(key==3)

exit(0);

*/

show_Start();

menu_CMD();

return0;

}

 

voidshow_Start()

//cout<

"

****************************************"

"

MadebyJason"

}

//.

voidshow_Table()

<

\t"

subject[0]<

subject[1]<

subject[2];

voidmenu_CMD()

while

(1)

1.<

2.<

3.<

4.<

5.<

6.<

if((key<

1)||(key>

6))

(1-5):

else

break;

}

switch(key)

case1:

addRecord();

case2:

deleteRecord();

case3:

modifyRecord();

case4:

queryRecord();

case5:

case6:

quit();

///////////////////////////////////////////////////////////////////////////////

voidaddRecord()

if(stuNum==0)

stuNum++;

//

if(stuNum>

INIT_SIZE)

record=(STUDENT*)realloc(record,(INIT_SIZE+INCRE_SIZE)*sizeof(STUDENT));

!

cout<

(Y/N):

charchoi;

choi;

if((choi=='

Y'

)||(choi=='

y'

))

:

record[stuNum].num;

record[stuNum].name;

(M,F):

record[stuNum].sex;

inti;

for(i=0;

i<

SUBJECT_NUM;

i++)

subject[i]<

record[stuNum].score[i];

N'

n'

stuNum<

//////////////////////////////////////////////////////////////////////////////

//\

//deleteRecord

voidInfo_delete()

1."

3."

//

voiddeleteRecord()

Info_delete();

//

delete_Num(targetNum);

delete_Name(targetName);

menu_CMD();

voiddelete_Num(inttarNum)

for(i=1;

=stuNum;

if(record[i].num==tarNum)

//1.

//2.

if(i=stuNum)

show_Table();

record[i].num<

record[i].name<

record[i].sex<

record[i].score[0]<

record[i].score[1]<

record[i].score[2];

endl<

for(inti=1;

=stuNum-1;

record[i].sex;

for(intj=0;

j<

j++)

record[i].score[j];

/*

stuNum--;

*/

//2.

if(i!

=stuNum)

for(intj=i+1;

record[j-1]=record[j];

=stuNum-1;

voiddelete_Name(chartarName[])

if(strcmp(record[i].name,tarName)==0)

/

//if(strcmp(record[i].name,tarName)==0)

if(i==stuNum)

/*

.cout<

/*****************************************************************************

******************************************************************************/

voidInfo_modify()

\:

2."

voidmodifyRecord()

//display();

voidmodify_Num(inttarNum)

record[i].num;

record[i].name;

record[i].score[0];

record[i].score[1];

subject[2]<

voidmodify_Name(chartarName[])

subj

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1