C++ Programming/STL
static 상수 멤버의 초기화
raulyo
2009. 6. 30. 19:25
class MyClass{
static const int num = 100;
int elems[num];
...
};
-> const int MyClass::num; //이곳에서 초기화하지 않음
static const int num = 100;
int elems[num];
...
};
-> const int MyClass::num; //이곳에서 초기화하지 않음