title: Initialization of an array of structs in C++
body: <p>If I have a struct like below:</p>
  
  <pre><code>typedef struct MyStruct {
      char **str;
      int num;    
  } MyStruct;
  </code></pre>
  
  <p>Is there a way for me to initialize an array of this structures. Perhaps like below:</p>
  
  <pre><code>const MyStruct MY_STRUCTS[] = {
      {
          {"Hello"}, 
          1
      },
      {
          {"my other string"}, 
          3
      },
  };
  </code></pre>
  
  <p>Ultimately I would like to have a constantly declared array of structs inside a C++ class. How can this be done? Is it possible to have a privately declared member that is pre-initialized?</p>