class A { public: int k; }; class B { public: static A a; }; A B::a /*= {7}*/; int _tmain(int argc, _TCHAR* argv[]) { B b; b.a.k = 7; return 0; };