跪求c++学生管理系统代码

来源:百度知道 编辑:UC知道 时间:2024/05/23 18:01:49
我需要一个必须是C++写的学生管理系统的代码,要求必须有录入,显示,查询,修改,删除 那位高人帮忙啊!我将全分二奉上!注:最好有详细的注释 谢谢了先

#include<stdio.h>
#include<string.h>
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
int i;
struct student
{ char name[20];
char sex[10];
int age,num;
struct sco
{ int phy;
int maths;
int english;
int computer;
int vc;
}score;
}stu[1000];
void scan()
{ int u,xe;
i=0;
for(u=0;u<1000;u++)
{ strcpy(stu[u].name,"/0");
strcpy(stu[u].sex,"/0");
stu[u].num=0;
stu[u].age=0;
stu[u].score.phy=0;
stu[u].score.maths=0;
stu[u].score.english=0;
stu[u].score.computer=0;
stu[u].score.vc=0;
}
printf("依次输入你要输入的信息,先是名字,然后学号,性别,年龄,成绩(5科),此系统最多科存1000名学生信息,剩余1000\n");
do
{ printf("输入学生名字\n");
scanf("%s",&stu[i].name);
printf("输入学生学号\n");
scanf