coach.cpp
来自「曼彻斯特联队球队系统 本程序是一个以数据处理为基础的类数据库的查找软件。用户」· C++ 代码 · 共 48 行
CPP
48 行
#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 + =
减小字号Ctrl + -
显示快捷键?