title: Define array, then change its size
body: <p>I come from a java background and there's something I could do in Java that I need to do in C++, but I'm not sure how to do it.</p>
  
  <p>I need to declare an array, but at the moment I don't know the size. Once I know the size, then I set the size of the array. I java I would just do something like:</p>
  
  <pre><code>int [] array;
  </code></pre>
  
  <p>then </p>
  
  <pre><code>array = new int[someSize];
  </code></pre>
  
  <p>How do I do this in C++?</p>