高分求C++程序 高手请进

来源:百度知道 编辑:UC知道 时间:2024/06/07 00:24:49
要求:
1、程序内要用类写
2、程序不要太大 不要太复杂 200~300行之间就可以了
3、程序内容为:有关管理系统的 (例如:学生成绩管理系统,学生档案管理系统,商场进出货物管理系统等等,切记不要职工工资管理系统)
4、可以在网上摘取粘贴,但尽量不要在百度上找,如果你是学计算机的,最好在你以前做过的程序中找个符合要求的,百度上没有是最好的
5、要程序可以运行,不用修改的

注:如果符合以上要求 本人会再追加高分的
各位高手们 辛苦你们了

c++学生管理系统程序
网上一搜一大把~~
#include<iostream.h>
#include<string.h>
#include<fstream.h>
class stu
{
char name[20];
double math,chinese,english,average,sum;
public:
stu()
{
}
stu(char n[20],double ma,double chin,double eng)
{
strcpy(name,n);
math=ma;
chinese=chin;
english=eng;
}
double getsum()
{
sum=chinese+english+math;
return sum;
}
double getaver()
{
average=getsum()/3;
return average;
}
friend void main();
};

void main()
{
cout<<"请选择您需要的操作!"<<endl;
cout<<"操作:"<<endl;
cout<<"(0)数据录入"<<endl;
cout<<"(1)增加人员"<<endl;
cout<<"(2)删除人员"<<endl;
cout<<"(3)修改数据"<<endl;
cout<<"查询:"<<endl