C++简单学生成绩管理系统(C++课程设计).pptxVIP

  • 1
  • 0
  • 约3.37千字
  • 约 21页
  • 2020-07-11 发布于四川
  • 举报

C++简单学生成绩管理系统(C++课程设计).pptx

C++学生成绩管理系统;;;;;;#includestring.h #includestdlib.h #includefstream.h;void save(); //保存学生信息并写入文件函数 void load (); //打开写有学生信息的文件的函数 student operator=(student T); //重载“=”符号 friend istream operator (istream scin, student s1); // 重 载“”符号 friend ostream operator (ostream scout, student s2); //重 载“”符号 }; student stu[100]; int n=0; void student::add() //添加函数 { char flag=Y; while(toupper(flag)==Y) { cinstu[n]; n++; cout 要继续添加吗(y/n); cinflag; if(toupper(flag)!=Y) { if(toupper(flag)==N);{ break; } else { cout错误,请重输:; cinflag; } } } } void student::output() //输出函数 { if(n!=0) { cout;{ coutstu

文档评论(0)

1亿VIP精品文档

相关文档