B
bigc
How can I make a static STL vector like this?
#include <vector>
using namespace std;
class CClass
{
public:
static vector<int> v;
CClass();
};
CClass::CClass()
{
v.push_back (2);
}
main()
{
}
Thanks.
#include <vector>
using namespace std;
class CClass
{
public:
static vector<int> v;
CClass();
};
CClass::CClass()
{
v.push_back (2);
}
main()
{
}
Thanks.