Libera Y y despues X... a ver q tal... Saludos
EDIT: Olvida este comentario xD es que me acabo de parar y nu vi bien... jeje
EDIT: Olvida este comentario xD es que me acabo de parar y nu vi bien... jeje
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú#ifndef PERSONA_H
#define PERSONA_H
using namespace std;
class Persona{
public:
Persona();
Persona(string name,string ape, int t, int ced);
virtual ~Persona();
void g_nombre(string name);
void g_apellido(string ape);
void g_tlf(int t);
void g_ci(int ced);
string dev_nombre()const;
string dev_apellido()const;
int dev_tlf()const;
int dev_ci()const;
protected:
string nombre;
string apellido;
int tlf;
int ci;
};
#endif
#include "Persona.h"
Persona::Persona(){}
Persona::Persona(string name,string ape, int t, int ced) : nombre(name),
apellido(ape),tlf(t),ci(ced){}
Persona::~Persona(){}
void Persona::g_nombre (string name){nombre=name;}
void Persona::g_apellido (string ape){apellido=ape;}
void Persona::g_tlf (int t){tlf=t;}
void Persona::g_ci(int ced){ci=ced;}
string Persona::dev_nombre()const{return nombre;}
string Persona::dev_apellido()const{return apellido;}
int Persona::dev_tlf()const{return tlf;}
int Persona::dev_ci()const{return ci;}
#ifndef PERSONA_H
#define PERSONA_H
class Persona{
public:
Persona();
Persona(string name,string ape, int t, int ced);
virtual ~Persona();
void g_nombre(string name);
void g_apellido(string ape);
void g_tlf(int t);
void g_ci(int ced);
string dev_nombre();
string dev_apellido();
int dev_tlf();
int dev_ci();
protected:
string nombre;
string apellido;
int tlf;
int ci;
};
#endif
#include "Persona.h"
Persona::Persona(){}
Persona::Persona(string name,string ape, int t, int ced):nombre(name),
apellido(ape),tlf(t),ci(ced){}
Persona::~Persona(){}
void Persona::g_nombre (string name){nombre=name;}
void Persona::g_apellido (string ape){apellido=ape;}
void Persona::g_tlf (int t){tlf=t;}
void Persona::g_ci(int ced){ci=ced;}
string Persona::dev_nombre()const{return nombre;}
string Persona::dev_apellido()const{return apellido;}
int Persona::dev_tlf()const{return tlf;}
int Persona::dev_ci()const{return ci;}
#include <cstdlib>
#include <iostream>
#include "Persona.h" //Here
using namespace std;