system.cpp

来自「学生管理类,很好的」· C++ 代码 · 共 50 行

CPP
50
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?