title: C++ struct was not declared this scope
body: <p>Using struct like linked list creates problem.
  When I declare 2 values (my struct),
  it returns error: </p>
  
  <blockquote>
    <p>this VALUE_NAME was not declared this scope<br></p>
  </blockquote>
  
  <p>This is part of the source. <br></p>
  
  <pre><code>struct _node
  {
      int val;
      _node* prev;
      _node* next;
  };
  typedef struct _node node;
  
  node* HEAD;
  
  void deleteALLNode()
  {
      node* node = HEAD;
      node* _tmp;
  
  //
  // here _tmp value return error
  //
  }
  </code></pre>