编程实现学生基本信息管理程序。C

来源:百度知道 编辑:UC知道 时间:2024/05/25 06:11:33
1、 编程实现学生基本信息管理程序。学生基本信息包括:学号、姓名、性别、年龄、班级、学院、专业等。编程实现学生信息的添加,查询(至少提供按学号查询、班级和专业的综合查询两种方式),修改(只提供按照学号进行修改),删除(依据指定的信息删除如姓名、学号等)等基本功能。其显示的菜单内容如下:
请选择下面的一个项目:
1 创建
2 添加
3 查询
4 修改
5 删除
6 显示
7 退出
最好是能用TC弄,先谢谢各位啦!

类似的程序 拿去修改一下吧
#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;
cout<<"(