employee.h
来自「数据结构课程第一次实验 要求:1.基类和派生类的定义和实现(.h .cpp) 」· C头文件 代码 · 共 23 行
H
23 行
#ifndef EMPLOYEE_H
#define EMPLOYEE_H
#include <iostream>
#include <string>
using namespace std;
class Employee
{
public:
string name;
int salary;
Employee(){};
Employee(string,int);
friend Employee operator+(Employee&, Employee&); //重载运算符+
friend ostream& operator<<(ostream&, Employee&); //重载流插入运算符<<
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?