title: Creating a vector<MyClass>
body: <p>I need to basically create a list of MyClass objects. I thought the best way of doing this would be to write <code>vector&lt;MyClass&gt; myClassList;</code> however when compiling I am presented with the following error</p>
  
  <p>error C2065: 'MyClass' : undeclared identifier</p>
  
  <p>Why is this so?
  c++</p>
  
  <p>Thanks
  Thomas</p>