All pastes #969089 Raw Edit

Stuff

public text v1 · immutable
·published 2008-04-03 13:46 UTC
rendered paste body
/*
 *  Personne.h
 *  port_bis
 *
 *  Created by Yanic Motte on 28/11/07.
 *
 */
#ifndef _PERSONNE_
#define _PERSONNE_
#include <string.h>
#include <iostream>

using namespace std;

class Personne
{
	protected:
		char *szfname; // first name
		char *szlname; // last name
		char *szaddress;
		char *szbirthplace;
		//date naissance;
		int sex; // 0 = Feminim, 1 = Masculin
		char *sznationality;
		// num carte identifee | passeport
	public:
		Personne();
		Personne(char *, char *, char *);
		Personne(const Personne &);
		virtual ~Personne();
		void setfname(const char *);
		const char* getfname();
		void setlname(const char *);
		const char* getlname();
		void setaddress(const char *);
		const char* getaddress();
		void setbirthplace(const char *);
		const char* getbirthplace();
		
		void affiche();
		virtual ostream& affiche (ostream &);
		virtual istream& saisie (istream &);
		
		Personne& operator= (Personne &);
		//friend ostream& operator<< (ostream &,class Personne &);
		//friend istream& operator>> (istream &,class Personne &);
};

ostream& operator<< (ostream &,class Personne &);
istream& operator>> (istream &,class Personne &);

#endif