c++ new class array constructor的相關文章
c++ new class array constructor的相關公司資訊
c++ new class array constructor的相關商品

C++: constructor initializer for arrays - Stack Overflow
瀏覽:408
日期:2025-04-29
Right now, you can't use the initializer list for array members. You're stuck doing it the hard way. class Baz { Foo foo[3]; Baz() { foo[0] = Foo(4); foo[1] = Foo(5); foo[2] = Foo(6); } }; In C++0x you can write: class Baz { Foo foo[3]; Baz() : foo ......看更多