title: How to Initialize an array using initializer-list C++
body: <p>I have a question related to C++ arrays and structs.  I have a struct:</p>
  
  <pre><code>struct npc_next_best_spot{
      npc_next_best_spot(): x({0}),
                            y({0}),
                            value(-1),
                            k(0),
                            i({0}), 
                            triple_ress({0}),
                            triple_number({0}),
                            bigI(0)
      {}
  
      int x[3]; 
      int y[3]; 
      double value; 
      int k; 
      int i[3]; 
      int triple_ress[3]; 
      int triple_number[3];
      int bigI;
  };
  </code></pre>
  
  <p>but this gives the warning</p>
  
  <blockquote>
    <p>"list-initializer for non-class type must not be parenthesized".</p>
  </blockquote>
  
  <p>So how can I make sure that these arrays are initialized with <code>0</code> values for all?</p>