2020-02-09 13:28:03 +01:00
|
|
|
|
/*
|
|
|
|
|
Fernando M<EFBFBD>ndez
|
|
|
|
|
https://fernmend.ddns.net
|
|
|
|
|
C++ | Clases y memoria din<EFBFBD>mica.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-08 20:32:39 +01:00
|
|
|
|
#ifndef _Persona
|
|
|
|
|
#define _Persona
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <iomanip>
|
|
|
|
|
|
|
|
|
|
class Persona{
|
|
|
|
|
public:
|
|
|
|
|
//Constructoras:
|
|
|
|
|
Persona();
|
|
|
|
|
Persona(std::string, std::string, std::string, std::string);
|
|
|
|
|
|
|
|
|
|
//M<>todos p<>blicos:
|
|
|
|
|
void mostrar(); //Muestra los atributos de una persona.
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
//Atributos:
|
|
|
|
|
std::string _nombre, _apellidos, _NIF, _edad;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // !_Persona
|