블로그 이미지
.
속눈썹맨

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

calendar

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

[C++]static const member variable initialize

2006. 5. 15. 20:34 | Posted by 속눈썹맨

. static const member variable initialize
class A
{
  public:
  static const int m_n = 10;
  int alpha[m_n];


};

int main()
{
  A a;
  a.alpha[0] = 1;

  return 0;
}

. 참고
http://publib.boulder.ibm.com/infocenter/macxhelp/v6v81/index.jsp?topic=/com.ibm.vacpp6m.doc/language/ref/clrc13cplr038.htm
http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/cplr038.htm