1260: (2025)实验5-1-2 设计一个Employee类

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:420 Solved:187

Description

设计一个Employee类,包含:雇员的编号、姓名、性别、出生日期等。其中“出生日期”声明为一个日期类的对象。用成员函数实现对人员信息的录入和显示。要求包括:构造函数(输出“Calling the constructor.”)和析构函数(输出“Calling the destructor.”)。

Output


Sample Input Copy

001 zhangsan M 2003 5 7 002 lisi M 2002 12 13 003 xiaoli F 2010 2 3

Sample Output Copy

Calling the constructor.
001 zhangsan M 2003/5/7
Calling the destructor.
Calling the constructor.
002 lisi M 2002/12/13
Calling the destructor.
Calling the constructor.
003 xiaoli F 2010/2/3
Calling the destructor.

HINT