2006년 5월 15일 월요일

[C++]static const member variable initialize

. 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

댓글 없음:

댓글 쓰기