title: C++ list/vector help
body: <p>I'm new to C++ so this is probably a very simple question, but I haven't been able to find any examples online that have helped.</p>
  
  <p>I've defined my own <code>Bubble</code> class and I need to create a <code>vector</code>/<code>list</code> (I'm used to C# and Java, so I'm not sure which is correct) to dynamically store <code>Bubble</code> objects in. Here's my code so far:</p>
  
  <pre><code>#include "Bubble.h"
  #include &lt;vector&gt;
  #include &lt;list&gt;
  
  int backgroundImages[10]; 
  list&lt;Bubble&gt; bubbles;
  vector&lt;Bubble&gt; bubbles_two;
  Bubble b;
  
  void AppMain()
  {
      loadImages();
      ViewAdd(backgroundImages[8], 0,0);
      b = Bubble();
      b.velocity = Vector2D(9,4);
  
      //I know this can't be right..
      bubbles.add(b);
      bubbles_two.add(b);
  }
  </code></pre>
  
  <p>Neither the <code>list</code> nor the <code>vector</code> works - it says "list/vector is not a template" in my error list.</p>
  
  <p>Which should I use, <code>list</code> or <code>vector</code>? And how do I correctly implement it?</p>