bool LinkedList::next()
{
Node *prev, *temp;
temp->ptr = static_cast<int>(prev->ptr) ^ static_cast<int>(current->ptr);
prev->ptr = current->ptr;
current->ptr = temp->ptr;
}
I keep getting the error:
error C2296: '^' : illegal, left operand has type 'Node *'
If this is totally wrong, can you just tell me how to do it, but it needs to be return type bool. The node class is defined as :
Code:class Node { public: Node(){} ~Node(){} // stores the value for the node int value; // stores both the next and previous pointers, combined with the xor operator Node *ptr; };



LinkBack URL
About LinkBacks




