Author Topic: show me the integer.  (Read 2775 times)

Gametaku

  • .
  • Founders
  • Posts: 168
  • Karma: +13/-4
  • .
show me the integer.
« on: April 17, 2006, 01:44:25 PM »
list.cc:99: error: invalid conversion from 'List::Node*' to 'int'
Code: [Select]

  Node *reverse = new Node [sz];
  Node *hold = first; //first points to the first node of a list.

// this should create any array that contains the values of the pointers for a linked list;
  for ( int i = 0; i < sz; i++)
    {
      hold = hold -> next;
      reverse[i] = hold; // this lis line 99.
    }