91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

使用VC 6.0編譯器

資源截圖

代碼片段和文件信息

#include??
#include??
#include??
#include??
#include??
#include??
#include??
#include??
#include??

#define?LEN?sizeof(struct?student)?
using?namespace?std;?
int?n=0;?//定義一個(gè)全局變量統(tǒng)計(jì)學(xué)生人數(shù)?
struct?student//定義一個(gè)學(xué)生信息的結(jié)構(gòu)體?
{?
char?name[20];?//用來(lái)存放姓名的?
char?sex[20];?//用來(lái)存放性別的?
char?yuanxi[20];//用來(lái)存放院系的?
long?int?id;?//用來(lái)存放學(xué)號(hào)的?
int?score[4];?//用來(lái)存放分?jǐn)?shù)的?
int?total;?//用來(lái)存放總分?jǐn)?shù)的?
struct?student?*next;??
};?
vector??stu;?
class?Information??
{?
public:?
Information()?;?//構(gòu)造函數(shù).?
~Information()?;?//析構(gòu)函數(shù).?
student?*creat();//建立鏈表函數(shù)。?
void?output(student?*head);?
int?count(student?*head);//定義函數(shù)count()統(tǒng)計(jì)考生總數(shù)??
student?*insert(student*head);//指針函數(shù)*insert()用來(lái)添加考生信息.?
student?*cancel(student?*headlong?int?num);//指針函數(shù)*cancel()用來(lái)刪除考生信息.?
student?*find(student?*headlong?int?num);?//指針函數(shù)*find()用來(lái)查找考生信息.?
void?inorder(student?*head);//定義inorder()函數(shù)將考生的總分從大到小排列并輸出?

評(píng)論

共有 條評(píng)論

相關(guān)資源