I am trying to have my linked list's ostream print out the previous node's location, then value of the current node, and then next node location but right now it will print a '0' instead of the actual location of the previous node. The value and next locations print fine though. What am I doing wrong?
Since you appear to be printing node.prev, I would have to guess that you didn't set node.prev correctly when you inserted the node or called your Node constructor.