Initialise a static member of a C++ class

by ixmx


class X
{
public:
      static int i;
};
int X::i = 0; // initialisation outside class declaration
Advertisements