c++ - C++03 Initialization of an Array of Objects -


i'm sure dupe, can't seem find information on prior c++11.

if have plain old data (pod) type:

class foo {     double x, y, z; }; 

and class such as:

class bar {     foo foos[13]; }; 

if construct bar object default initialize 13 foo member objects default initializer?


i've tested visual studio 2008 , default initializing foo objects. i'd know if that's standard behavior or visual studio special sauce.

it seems had created variables in zeroed range.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -