title: Array and struct initialize in C++
body: <p>I would like to initilize some elements of an struct and array in C++.</p>
  
  <p>In C you can do:</p>
  
  <pre><code>unsigned char array[30] = {[1] = 4, [20] = 4};
  struct mystruct 
  { int i;
    int j;
  }
  struct mystruct e = {.j = 2};
  </code></pre>
  
  <p>But I cannot do it in C++. Is there any way to implement this kind of designated initializers?</p>