C++编写学生信息管理系统源代码Word下载.docx

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

C++编写学生信息管理系统源代码Word下载.docx

《C++编写学生信息管理系统源代码Word下载.docx》由会员分享,可在线阅读,更多相关《C++编写学生信息管理系统源代码Word下载.docx(32页珍藏版)》请在冰豆网上搜索。

C++编写学生信息管理系统源代码Word下载.docx

:

in);

ifs>

>

a;

while(strcmp(no,a)!

=0&

&

!

ifs.eof())

{

ifs>

}

ifs.seekg(1,ios:

cur);

b;

if(strcmp(b,code)==0)

return1;

else

return-1;

}

intchecksno(charno[100])

inti=1;

chara[100];

已注册学号.txt"

while(!

if(strcmp(a,no)==0)

{

i=-1;

break;

}

returni;

intmain()

end8:

cout<

<

"

欢迎使用学生信息管理系统!

endl;

intj;

end9:

1.学生操作:

2.老师操作:

请输入您想进行的操作序号:

;

cin>

j;

system("

cls"

);

if(j==1)

for(;

end17:

cout<

欢迎进入学生界面!

charno[100];

charcode[100];

intn;

studentstu;

birthbirth1;

1.学生注册:

2.添加学生基本信息:

3.学生基本信息查询:

4.学生基本信息修改:

5.选修课程:

6.密码修改:

7.返回首界面:

8.退出系统:

cin>

n;

if(n==1)

{

intcount=0;

system("

end1:

cout<

学生注册界面"

charno[100],code[100];

charkong[100]="

"

请您注册"

学号:

cin>

no;

intchecsno=checksno(no);

if(checsno==-1)

{

cout<

对不起,此学号已被注册,请重试!

count++;

if(count>

=5)

{

cout<

对不起,您尝试的次数过多,注册界面将退出!

Sleep(600);

system("

gotoend17;

}

Sleep(600);

system("

gotoend1;

}

密码:

code;

ofstreamofs1("

out|ios:

app);

ofstreamofs2("

information.txt"

ofstreamofs3("

ofs1<

no<

'

'

kong<

ofs2<

ofs3<

ofs1.close();

ofs2.close();

ofs3.close();

注册成功!

}

elseif(n==2)

intcount2=0;

end15:

学生添加基本信息界面"

请先登录!

charno[100],code[100],a[100],b[100],c[100],d[100];

inte=-1;

学生学号:

ifstreamifs2("

while(!

ifs2.eof())

ifs2>

d;

if(strcmp(d,no)==0)

e=1;

break;

if(e==-1)

此学号还没注册,请重试!

count2++;

if(count2>

对不起,您的尝试次数过多,请您检查一下学号是否已经注册!

Sleep(2000);

gotoend15;

ifstreamifs("

informationfinish.txt"

ifs>

c;

if(strcmp(c,no)==0)

对不起,您已经添加您的基本信息了!

Sleep(500);

gotoend15;

end2:

intchec=check(no,code);

if(chec==-1)

密码错误,请重试!

=3)

对不起,您尝试的次数过多,系统将自动关闭!

Sleep(400);

gotoend10;

Sleep(1000);

gotoend2;

else

登录成功!

Sleep(500);

end23:

请登录并输入学生基本信息:

stu.sno;

if(strcmp(stu.sno,no)!

=0)

对不起,您添加的学号与您所注册的学号不符,请重试!

gotoend23;

学生姓名:

stu.sname;

学生年级:

stu.sgrade;

学生专业:

stu.sprofession;

学生出生年月日:

birth1.syear;

birth1.smonth;

birth1.sday;

学生籍贯:

stu.snativeplace;

基本信息添加完毕!

ofstreamofs("

ofs<

fstreamfs("

in|ios:

out);

fs>

while(strcmp(stu.sno,a)!

fs.eof())

fs>

fs.seekg(1,ios:

fs<

stu.sname<

stu.sgrade<

stu.sprofession<

stu.snativeplace<

birth1.syear<

birth1.smonth<

fs.close();

ofs.close();

elseif(n==3)

intcount3=0;

intf=-1;

end18:

基本信息查询界面"

charno[100],code[100],a[100],d[100],g[100];

gotoend18;

ifstreamifs3("

ifs3.eof())

ifs3>

g;

if(strcmp(g,no)==0)

f=1;

if(f==-1)

此学号还没添加基本信息,请重试!

count3++;

if(count3>

对不起,您的尝试次数过多,请您返回添加您的基本信息!

end3:

gotoend3;

Sleep(600);

ifs>

while(strcmp(a,no)!

ifs.seekg(1,ios:

年"

月"

birth1.sday<

日"

ifs.close();

intfanhui;

请添加“1”返回学员界面:

fanhui;

if(fanhui==1)

gotoend17;

elseif(n==4)

欢迎进入学生基本信息修改界面!

end19:

基本信息修改登录界面"

gotoend19;

end20:

gotoend20;

end22:

ifstreamifs6("

chartemp[100],a2[100],b2[100],c2[100],d2[100],e2[100],f2[100],g2[100];

ifs6>

temp;

while(strcmp(temp,no)!

ifs6.eof())

ifs6>

a2;

b2;

c2;

d2;

e2;

f2;

g2;

当前学员的基本信息:

a2<

b2<

c2<

d2<

e2<

f2<

g2<

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

当前位置:首页 > 解决方案 > 学习计划

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

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