最近看到很多人都在问怎么写一个学生信息管理系统,我把代码发过来:
#include<iostream>
#include<string>
#include<vector>
using namespace std;
class student{
vector<string> name{
"张三","李四"};
vector<float> point_c{
85.2,65.2};
vector<float> point_m{
97.8,100};
vector<float> point_e{
99,68.5};
vector<string> stu_n{
"kudv","bvilf"};
public:
void delete_s();
void get_new();
void look_all();
void get_one();
void out();
};
int main()
{
while(true)
{
cout<<"学生信息管理系统"<<endl;
cout<<"-----------------------------"<<endl;
cout<<"1.浏览所有学生信息"<<endl;
cout<<"2.添加学生信息"<<endl;
cout