If you add << '\n' to line 48 so each node prints on a different line, you'll see that it's printing 0 for each node. So the question is why? The answer is on line 16. You're assigning value1 to the local variable value, not the member variable value, so the member is never set. Just remove "int" from that line and it will work.
However, your display function displays the nodes in prefix order: first the current node, then left tree (all nodes less than the current one), and then the right tree. You probably want to display it in infix order the the numbers come out in sorted order.