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

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

学生信息管理系统C++语言程序代码样本_第1页
1/20
学生信息管理系统C++语言程序代码样本_第2页
2/20
学生信息管理系统C++语言程序代码样本_第3页
3/20
#include #include #include #include #include #include #include #include #include #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<<" ******************************************************************************\n"; cout<<" ------------------------<<谢谢您使用学生信息管理系统>>------------------------\n"; cout<<" ******************************************************************************\n"; } student *Information::creat(void) //定义一...

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

碎片内容

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

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