hi all,
i want to make a class which can count how many objects it has.
i thougt to use static and one initilaize aftert that incrementing it.
but it gives me error. where am i wrong?Code:class x { public: int no; int give_no; x(); }; x::x() { no=0; give_no++; no= give_no; }