title: Invalid conversion from class pointer to int
body: <p>I am unable to figure out what the problem is in the code below</p>
  
  <pre><code>class Node
  {
      private:
          int index, value;
  
      public:
          Node(int index=0, int value=0):index(index),value(value){}
  
          int getIndex()
          {
              return index;
          }
  
          int getValue()
          {
              return value;
          }
  };
  
  
  int main()
  {
      Node n = new Node(10,10);
      return 0;
  }
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>invalid conversion from Node* to int</p>
  </blockquote>