clase.cpp~
来自「Ejemplo de programa en c++」· CPP~ 代码 · 共 31 行
CPP~
31 行
#include <string>#include "Clase.h"using namespace std;MiNombre::MiNombre(string nombre, string paterno, string materno){ this -> nombre = nombre; this -> paterno = paterno; this -> materno = materno;}MiNombre::~MiNombre(){ cout << "Objeto destruido";}string MiNombre::getNombre(){ return this -> nombre;}string MiNombre::getPaterno(){ return this -> paterno;}string MiNombre::getMaterno(){ return this -> materno;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?