title: disconnect node and return it
body: <p>i have following fragment of code</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;cstring&gt;
  using namespace std;
  class data
  {
  public:
      long ddata;
      data(long dd)
      {
          ddata=dd;
      }
      void display()
      {
          cout&lt;&lt;ddata&lt;&lt;"  ";
      }
  
  
  
  
  };
  class Node
  {
       const  int order=4;
      int numitems;
      Node *parent;
      Node *childarray[order];
      data *item[order-1];
  public:
      void connect(int childnum,Node *child)
      {
          childarray[childnum]=child;
          if(child!=NULL)
              child-&gt;parent=this;
  
  
      }
      //disconetc from this node,return it;
  
      Node *disconnectchild(int childnum)
      {
          Node *tempnode=childarray[childnum];
          childarray[childnum]=NULL;
  
  
      }
       return  (tempnode);
  
  }
  </code></pre>
  
  <p>but at return tempnode it  colors this line by red line and says error:expected declaration,please help me to clarify what is problem?</p>