- C++相談室 part116 [転載禁止]©2ch.net
623 :デフォルトの名無しさん[sage]:2015/04/19(日) 12:34:28.12 ID:qbZayNF/ - >>622
#include <iostream> using namespace std; struct A{ static const int a[]; A(){} }; const int A::a[] = {999,111}; int main() { A a; cout<<a.a[0]<<endl; return 0; }
|
|