title: C++ / Arduino: dynamic int array
body: <p>I'm writing a class for the Arduino. It's been going well so far, but I'm sort of stuck now...</p>
  
  <p>I have declared an int array in my class </p>
  
  <pre><code>class myClass
  {
    public: MyClass(int size);
    private:
      int _intArray[];
  };
  </code></pre>
  
  <p>When I initialize the class <code>MyClass myClass1(5)</code> I need the array to look like this {0,0,0,0,0}.</p>
  
  <p>My question: what do I need to do so that the array contains 'size' amount of zeros?</p>
  
  <pre><code>MyClass::MyClass(int size)
  {
      //what goes here to dynamically initialize the array
      for(int i=0; i &lt; size; i++) _intArray[i] = 0;
  }
  </code></pre>
  
  <p>Edit: Following up on various replies below, Arduino does not include the standard library so unfortunately <code>std::vector</code> is not an option</p>