1、:in); ifsa; while(strcmp(no,a)!=0&!ifs.eof() ifs ifs.seekg(1,ios:cur);b; if(strcmp(b,code)=0) return 1; else return -1;int checksno(char no100) int i=1; char a100;已注册学号.txt while(! if(strcmp(a,no)=0) i=-1; break; return i;int main()end8: coutj; system(cls); if(j=1) for(;)end17: coutn; if(n=1) int co
2、unt=0; system(end1: coutno; int checsno=checksno(no); if(checsno=-1) cout=5) cout对不起,您尝试的次数过多,注册界面将退出! Sleep(600); system( goto end17; Sleep(600); system( goto end1; 密码:code; ofstream ofs1(out|ios:app); ofstream ofs2(information.txt ofstream ofs3( ofs1no kong ofs2 ofs3d; if(strcmp(d,no)=0) e=1; brea
3、k; if(e=-1)此学号还没注册,请重试! count2+; if(count2对不起,您的尝试次数过多,请您检查一下学号是否已经注册! Sleep(2000); goto end15; ifstream ifs(informationfinish.txt ifsc; if(strcmp(c,no)=0)对不起,您已经添加您的基本信息了! Sleep(500); goto end15;end2: int chec=check(no,code); if(chec=-1)密码错误,请重试!=3)对不起,您尝试的次数过多,系统将自动关闭! Sleep(400); goto end10; Slee
4、p(1000); goto end2; else登录成功! Sleep(500);end23:请登录并输入学生基本信息:stu.sno; if(strcmp(stu.sno,no)!=0)对不起,您添加的学号与您所注册的学号不符,请重试! goto end23;学生姓名:stu.sname;学生年级:stu.sgrade;学生专业:stu.sprofession;学生出生年月日:birth1.syear;birth1.smonth;birth1.sday;学生籍贯:stu.snativeplace;基本信息添加完毕! ofstream ofs( ofs while(strcmp(stu.sno
5、,a)!fs.eof() fs fs.seekg(1,ios: fsstu.snamestu.sgradestu.sprofessionstu.snativeplacebirth1.syearbirth1.smonthg; if(strcmp(g,no)=0) f=1; if(f=-1)此学号还没添加基本信息,请重试! count3+; if(count3对不起,您的尝试次数过多,请您返回添加您的基本信息!end3: goto end3; Sleep(600); ifs while(strcmp(a,no)! ifs.seekg(1,ios:年月birth1.sdaytemp; while(strcmp(temp,no)!ifs6.eof() ifs6a2;b2;c2;d2;e2;f2;g2;当前学员的基本信息:a2b2c2d2e2f2g2
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1