title: Default values for arrays members of struct
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6647038/intitialzing-an-array-in-a-c-class-and-modifiable-lvalue-problem">Intitialzing an array in a C++ class and modifiable lvalue problem</a>  </p>
  </blockquote>
  
  
  
  <p>As seen in <a href="https://stackoverflow.com/questions/1069621/are-members-of-a-c-struct-initialized-to-0-by-default">this</a> question, it's possible to give a ctor to a struct to make it members get default values. How would you proceed to give a default value to every element of an array inside a struct.</p>
  
  <pre><code>struct foo
  {
     int array[ 10 ];
     int simpleInt;
     foo() : simpleInt(0) {}; // only initialize the int...
  }
  </code></pre>
  
  <p>Is there some way to make this in one line similar to how you would do to initialize an int?</p>