#include
using std::cout;
using std::endl;
#include
class Personne
{
char *nom, *prenom;
public:
Personne(char *_nom, char *_prenom)
{
nom= _nom;
prenom= _prenom;
}
void afficher()
{
cout <<"nom: "<<*nom
<<"Prénom: "<<*prenom
< values;
std::queue< Personne > pq_obj;
Personne pers[]=
{
Personne("AB", "BA"),
Personne("AC", "CA"),
Personne("AD", "DA")
};
for(int x=0; x<3;x++)
{
pq_obj.push(pers[x]);
}
while ( !pq_obj.empty() )
{
cout <<"Nom "<