📄 coach.cpp
字号:
#include<iostream.h>
#include<iomanip.h>
#include"employee.h"
#include"coach.h"
coach::coach(const int a,const double e,const char* n,int c_g,int c_o,int m_m,
int t_k,int p,int d):employee(a,e,n)
{
coaching_goalkeeper=c_g;
coaching_outfield=c_o;
man_managerment=m_m;
tactical_knowledge=t_k;
physiotherapy=p;
determination=d;
}
const int coach::getcoaching_goalkeeper()const
{return coaching_goalkeeper;}
const int coach::getcoaching_outfield()const
{return coaching_outfield;}
const int coach::getman_managerment()const
{return man_managerment;}
const int coach::gettactical_knowledge()const
{return tactical_knowledge;}
const int coach::getphysiotherapy()const
{return physiotherapy;}
const int coach::getdetermination()const
{return determination;}
void coach::print()const
{
employee::print();
cout<<endl;
cout<<"\t训练守门员:"<<coaching_goalkeeper
<<"\t训练非守门员的球员:"<<coaching_outfield<<endl;
cout<<"\t人员管理:"<<man_managerment
<<"\t战术知识:"<<tactical_knowledge<<endl;
cout<<"\t医疗能力:"<<physiotherapy
<<"\t决心:"<<determination<<endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -