title: Missing Template Argument with Vectors
body: <p>I am trying to make a class that will create a vector and use a bubble sort on it. Everything compiles just fine except when I attempt to create a BubbleStorage class called bubble.</p>
  
  <p>The compiler gives me an error "missing template argument before bubble", "expected ; before bubble".</p>
  
  <p>This code is not finished; however, as I am still in the process of making the bubble sort functions. I just want to take care of this before moving on.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;time.h&gt;
  #include &lt;vector&gt;
  
  using namespace std;
  
  template&lt;typename T&gt;
  class BubbleStorage
  {
  public:
      BubbleStorage();
      ~BubbleStorage();
      vector&lt;T&gt;MyVector;
  
      void add_data(int size)
      {
          srand (time(NULL));
  
          for (T i = 0; i &lt;= size; i++)
              random = rand() % 100;
          MyVector.push_back(random);
      }
  
      void display_data()
      {
          cout&lt;&lt;"The Vector Contains the Following Numbers"&lt;&lt;endl;
          for (vector&lt;int&gt;::iterator i = MyVector.begin(); i != MyVector.end(); ++i)
              cout&lt;&lt;' '&lt;&lt; *i;
      }
  
      void max()
      {
  
      }
  
      void min()
      {
  
      }
  };
  
  int main(int argc, char *argv[])
  {
      srand (time(NULL));
  
      int size = rand() % 50 + 25;
      BubbleStorage bubble;
  
      bubble.add_data(size);
      bubble.display_data();
  
  }
  </code></pre>