⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.cpp

📁 学生管理类,很好的
💻 CPP
字号:
// system.cpp: implementation of the system class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "system.h"
#include <iostream.h>
#include "teacher.h"
#include "ban.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

system::system()
{

}

system::~system()
{

}
void System::showSystem()   //  输出教师和学生的构成
{
	cout<<"The Teachers totaled : "<<Teacher::totalTeacher<<endl
		<<"The Students totaled : "<<Ban::totalStu<<endl;
}
void System::showInfo(Ban a)         //要输出全部学生的资料!!!!!!!!
{
	int i;
	Person *p;
	for(i=0;i<a.totalStu;i++)
	{
		p=a.stu[i];
		p->showInfo();
	}
} 
void System::showInfo(Teacher b)         //要输出全部老师的资料!!!!!!!!
{
	int i=0;
	Person *p;
	p=&b;
	cout<<"This is teacher!  ******";
	p->showInfo();
	

} 
void System::changeInfo() {;}      //接受基本人员情况

⌨️ 快捷键说明

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