posted 17 years ago
I need to use a binary search tree to read an ascii file that i have written but i need to split it into two components to form an object type defined by me and it shld print entries from the BST in alphabetical order using the city field as key. (I used inorder transver)
also it shld calculate the averagetemperature. (totalsum = all cities temp added together)
(Average = total sum/30) cities are 30
Please advice how i go about using a BST to split into two and printing the output in alphabetical order.
I have done part 1