电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

学生信息管理系统C++语言程序代码

学生信息管理系统C++语言程序代码_第1页
1/13
学生信息管理系统C++语言程序代码_第2页
2/13
学生信息管理系统C++语言程序代码_第3页
3/13
#include 〈iostream。h〉 #include 〈iomanip。h〉 #include #include 〈malloc.h> #include 〈stdlib.h〉 #include 〈string〉 #include 〈process。h〉 #include 〈stdio。h〉 #define LEN sizeof(struct student) using namespace std; int n=0; //定义一个全局变量统计学生人数 struct student//定义一个学生信息的结构体 { char name[20]; //用来存放姓名的 char sex[20]; //用来存放性别的 char yuanxi[20];//用来存放院系的 long int id; //用来存放学号的 int score[4]; //用来存放分数的 int total; //用来存放总分数的 struct student *next; }; vector stu; class Information { public: Information() ; //构造函数. ~Information() ; //析构函数。 student *creat();//建立链表函数。 void output(student *head); int count(student *head);//定义函数 count()统计考生总数 student *insert(student*head);//指针函数*insert()用来添加考生信息。 student *cancel(student *head,long int num);//指针函数*cancel()用来删除考生信息. student *find(student *head,long int num); //指针函数*find()用来查找考生信息。 void inorder(student *head);//定义 inorder()函数将考生的总分从大到小排列并输出 void average( student *head);//求学生成绩的平均分的函数 void save(student *head);//保存函数 student *Read();//读取函数 private: student *p1,*p2,*p3,*head,st; }; Information::Information() //构造函数 { cout〈〈” ******************************************************************************\n"; cout<〈” ————-—-———---——————-————<〈欢迎您使用学生信息管理系统〉〉—-———-——-—————-————-—-—-\n”; cout〈〈" ******************************************************************************\n\n”; } Information::~Information() //构造函数 { cout<〈” ************************...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

学生信息管理系统C++语言程序代码

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部