title: Pointer "does not have a type" when compiling?
body: <p>Here is my code.</p>
  
  <pre><code>struct player
     {
     char* name;
     int* id;
     id = new int[5];
     };
  </code></pre>
  
  <p>When I compile, it says "error: 'id' does not name a type", pointing to the line the line where the pointer is allocated space for 5 ints.</p>
  
  <p>Don't ask my why I need an array of integers; it's for a class project and is required (our teacher likes making us do unnecessary things to give us practice).</p>