EntropySink

Technical & Scientific => Programming => Topic started by: Gametaku on April 17, 2006, 01:44:25 PM

Title: show me the integer.
Post by: Gametaku 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.
    }