I would like to set a program that ask personnal information to a "customer", and this code need to store a name and a surname in a structure contening al the var. But at the output it shows me a number.
#include <iostream>
using namespace std;
//DECLARATIONS
struct dates {
int emb_date;
int post_date;
};
struct info {
int nom;
int prenom;
};
void saisie_info() {
info identite;
cout << "Veuillez indiquer votre prenom : " << endl;
cin >> identite.prenom;
cout << "Veuiller maintenant insiquer votre nom : " << endl;
cin >> identite.nom;
cout << identite.prenom << " " << identite.nom << endl;
}
int main()
{
saisie_info();
}
As you can see : prenom mean Surname, and nom mean Name (I'm french) And that don't work.... Why ? I precise I have no other choice to use a '''struct''' to store "nom" and "prenom". Thanks for your help