title: Incomplete type not allowed in C++
body: <p>I am trying to recreate the data type of array for experimental purposes. I created a class "node" with two attributes value(int) and nextvalue(node) to hold the next node. The plan was to chain a number of node objects together and create an array. 
  here is my code:</p>
  
  <pre><code>class node
  {
  public :int value;
          node nextnode;
  };
  </code></pre>
  
  <p>However, I get the following error in the line <code>node nextnode;</code> : incomplete type not allowed 
  Like it is some sort of "recursive class" if that even exists.</p>
  
  <p>I have even tried creating a second class named "node2" that was the exact same with the previous one so as to trick the compiler int thinking the class didn't reference itself.
  Is there a solution or is this a dead end?</p>