1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <vector>
#include <string>
using namespace std;
struct t_date {
int jour; // Jour de 1 a 31
int mois; // Mois de 1 a 12
int annee; // Année de 1900 a 2021
};
struct t_personne {
string nom;
string prenom;
int age;
string adresse;
string dateNaissance;
};
void LireInfo (t_personne p1){
cout << "Saisir votre Prénom : ";
cin >> p1.prenom;
cout << "Saisir votre nom : ";
cin >> p1.nom;
cout << "Saisir votre age : ";
cin >> p1.age;
cout << "Saisir votre adresse : ";
cin >> p1.adresse;
};
void afficherInfoPoint(t_personne p1) {
cout << "Je mappelle : " << p1.nom << p1.prenom << endl;
cout << "J'ai : " << p1.age << endl;
cout << " J'habite au : " << p1.adresse << endl;
};
int main (void) {
t_personne p1;
LireInfo(p1);
afficherInfoPoint(p1);
}; |