?? system.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 + -