everest% CC main2.C everest% rm -r ii_files everest% rm *.o everest% CC main2.C --- C++ prelinker: main2.o --- CC -c -64 main2.C --- C++ prelinker: main2.o --- CC -c -64 main2.C --- C++ prelinker: main2.o --- CC -c -64 main2.C everest% a.out Inorder Walk ((( 1 ) 2 ( 3 ( 4 ))) 5 (( 6 ) 8 ( 9 ))) Edit tree (enter 'q' to quit): Integer to search: 2 Found: 2 Replace with: 17 Destroying node with data = 2 ((( 1 ) 3 ( 4 )) 5 (( 6 ) 8 ( 9 ( 17 )))) Integer to search: 7 Not found Integer to search: 5 Found: 5 Replace with: 92 Destroying node with data = 5 ((( 1 ) 3 ( 4 )) 6 ( 8 ( 9 ( 17 ( 92 ))))) Integer to search: 1 Found: 1 Replace with: 999 Destroying node with data = 1 (( 3 ( 4 )) 6 ( 8 ( 9 ( 17 ( 92 ( 999 )))))) Integer to search: q Inorder Walk (( 3 ( 4 )) 6 ( 8 ( 9 ( 17 ( 92 ( 999 )))))) Destroying node with data = 6 Destroying node with data = 8 Destroying node with data = 9 Destroying node with data = 17 Destroying node with data = 92 Destroying node with data = 999 Destroying node with data = 3 Destroying node with data = 4 everest%