📄 person.cpp
字号:
/*------------------------------------
chenhai 20071129
实现 人
---------------------------------------*/
#include "stdafx.h"
#include<iostream.h>
/*----------------------------------------------------
功能:返回某人的姓名
入参:无
出参:某人的姓名
-----------------------------------------------------*/
char* Person::getName( ){
return this->name;
}
/*----------------------------------------------------
功能:设定某人ID
入参:ID
出参:无
-----------------------------------------------------*/
void Person::setId(char* id){
this->id = id;
}
char* Person::getId(){
return id;
}
/*这是一个虚函数
*/
void Person::eat(){
}
void Person::setName(char* name){
this->name = name;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -