title: return a reference/pointer node from a linked list c
body: <p>i'm trying to return a reference/pointer node from a linked list that i create. here is my class and the method Return node, when i pass a value it does a look up in my list, but the compiler is giving me three errors:
  1-error C2143: syntax error : missing ';' before '*'
  2-error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  3-error C1903: unable to recover from previous error(s); stopping compilation</p>
  
  <p>Can somebody help me with that? Thank you very much!</p>
  
  <pre><code>template &lt;class Type&gt;
  class LinkedList
  {
  private:
  struct Node
  {
      Type value;
      Node* next;
  };
      Node* list;
  public:
  
  //Other functions here
  
  Node* FindNode(Type);
  
  };
  
  template &lt;class Type&gt;
  LinkedList&lt;Type&gt;::Node* LinkedList&lt;Type&gt;::FindNode(Type _value)
  { 
  Node* q = first;
  while(q != NULL &amp;&amp; q-&gt;value != _value)
      q = q-&gt;next;
  return q;
  }
  </code></pre>