employeeh.html

来自「Thinking in C, 全世界非常有名的学习C语言的书籍。本源代码含有该书」· HTML 代码 · 共 29 行

HTML
29
字号
<html><font size="+1"><pre>
// employee.h

#ifndef EMPLOYEE_H
#define EMPLOYEE_H

class Employee {
public:
    Employee(const char*, const char*, const char*, int);
    const char* getLast() const;
    const char* getFirst() const;
    const char* getTitle() const;
    int getSalary() const;
    void setLast(const char*);
    void setFirst(const char*);
    void setTitle(const char*);
    void setSalary(int);
    void print() const;
    
private:
    char last[16];
    char first[11];
    char title[16];
    int salary;
};

#endif

</pre></font></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?