#include using namespace std; class A { static int nb_obj; public: A() { cout << "création de l'objet n°" << ++nb_obj << endl; } ~A() { --nb_obj; } }; int A::nb_obj = 0; int main(void) { A* p[5]; for (int i=1; i!=5; ++i) p[i] = new A; return 0; }