title: Why do i have an "Expected type specifier error"?
body: <p>I have an "Expected type specifier error at "a = new Node('A)" on the word Node in my main cpp file. Can anyone tell me why this is and possibly how to fix it? I've looked everywhere and nothing seems to solve the problem. The program is meant to make a maze of nodes A-L that the user has to navigate through.</p>
  
  <p>Header File: </p>
  
  <pre><code>#pragma once
  #ifndef NODE_H
  #define NODE_H
  #include &lt;string&gt;
  
  using namespace std;
  
  namespace mazeGraph
  { 
      class Node
      {
      public: 
          Node();
          Node(char newNode);
          char getName() const;
          Node *getAdjacentRoom(char direction) const;
          void edge(char direction, Node *other);
          string getMovementOptions();
      private: 
          char roomName;
          Node *north, *west, *south, *east;
      };
      typedef Node *nodeptr;
  }
  
  #endif
  </code></pre>
  
  <p>Room.cpp: </p>
  
  <pre><code>#include "stdafx.h"
  #include "Room.h"
  #include &lt;string&gt;
  using namespace std;
  
  namespace mazeGraph
  {
      Node::Node() : roomName(' '), north(NULL), south(NULL), east(NULL), west(NULL)
      {
      }
      Node::Node(char newNode) : roomName(newNode), north(NULL), south(NULL), east(NULL), west(NULL)
      {
      }
      char Node::getName() const
      {
          return roomName;
      }
      Node* Node::getAdjacentRoom(char direction) const
      {
          switch (direction)
          {
          case 'N':
              return north;
          case 'S':
              return south;
          case 'E':
              return east;
          case 'W':
              return west;
          }
          return NULL;
      }
      void Node::edge(char direction, Node * other)
      {
          switch (direction)
          {
          case 'N':
              north = other;
              break;
          case 'S':
              south = other;
              break;
          case 'E':
              east = other;
              break;
          case 'W':
              west = other;
              break;
          }
      }
      string Node::getMovementOptions()
      {
          string movement = "";
          if (north != NULL)
              movement = "N: North ";
          if (south != NULL)
              movement = "S: South ";
          if (east != NULL)
              movement = "E: East ";
          if (west != NULL)
              movement = "W: West ";
          return movement;
      }
  }
  </code></pre>
  
  <p>Main cpp file: </p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;string&gt;
  #include "Room.h"
  #include "Room.cpp"
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      mazeGraph::nodeptr a, b, c, d, e, f, g, h, i, j, k, l;
      a = new Node('A');
      b = new Node('B');
      c = new Node('C');
      d = new Node('D');
      e = new Node('E');
      f = new Node('F');
      g = new Node('G');
      h = new Node('H');
      i = new Node('I');
      j = new Node('J');
      k = new Node('K');
      l = new Node('L');
      return 0;
  }
  </code></pre>