C++课程设计-----高校工资管理系统.docVIP

  • 6
  • 0
  • 约5.52千字
  • 约 7页
  • 2017-11-25 发布于江西
  • 举报
C课程设计-----高校工资管理系统

#include iostream #include string #include fstream #include iomanip using namespace std; ofstream outfile; //输出文件 ifstream infile; //输入文件 class Employee //抽象基类 { public: int num; string name; public: Employee(){} virtual float getMS()=0; // 纯虚函数获取月薪 ~Employee(){} //析构函数 }; class Teacher:virtual public Employee //虚继承 { public: int workhour; //教师上学期的工作量 static int baseM1; //教师基本工资 static int baseh; //教师基本工作量 public: Teacher(){} float getTM() //获取课时费函数 { return (workhour-baseh)*20; } f

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档