student.h

来自「这是一个基于.net开发环境开发的学生信息管理系统源代码经过测试可以正常使用」· C头文件 代码 · 共 62 行

H
62
字号
#pragma once

#define MAX_NUM_STUDENT 100

typedef struct tagStudent
{
	char name[20];
	long id;
	char sex[10];
	int math;
	int english;
	int computer;
	int chinese;
	int allscore;
	float avescore;
}SingleStu, ArrStu[MAX_NUM_STUDENT];


typedef struct tagPupil
{
	ArrStu infoOfStu;
	int numOfStu;
	int maxSize;
}Pupil;

class CStudent
{
public:
	CStudent(void);
	~CStudent(void);

	void AdmitStu();

	void Search_id();
	void Search_name();
	void Search_sex();
	void Search();

	void Sorting_math();
	void HeapAdjust(int differ, int end);

	void Sorting_english();
	int Partition(int low, int high);
	void QuickSort(int low, int high);

	void Sorting_chinese();

	void Sorting_computer();
	void ShellInsert(int pace);

	void Sorting_allscore();

	void Sorting_avescore();

	void Sorting();

	void Output();

protected:
	Pupil pupil;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?