I'm trying to understand the basics of C++ classes and the different forms of copying a class to another one, I made a simple class that use a table as a stack and i created simple function for stacking/unstacking integers
pileInt.h :
class pile_entier{
public:
int* p;
int n;
int counter;
public:
//Constructeurs & Déstructeurs
pile_entier(int n);
pile_entier();
~pile_entier();
//Les Méthodes
void empile(int p);
int depile();
int pleine();
int vide();
};
I'm trying to understand the basics of C++ classes and the different forms of copying a class to another one, I made a simple class that use a table as a stack and i created simple function for stacking/unstacking integers pileInt.h : [code]class pile_entier{ public: int* p; int n; int counter;
public: //Constructeurs & Déstructeurs pile_entier(int n); pile_entier(); ~pile_entier(); //Les Méthodes void empile(int p); int depile(); int pleine(); int vide();