Binary Search Tree Trouble

This is a discussion on Binary Search Tree Trouble within the C Programming forums, part of the General Programming Boards category; For the life of me, I can figure out why my treeRetrieve function isn't working. It seems that the create ...

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    8

    Binary Search Tree Trouble

    For the life of me, I can figure out why my treeRetrieve function isn't working. It seems that the create and insert seems to work.

    I'm looking for the program to input a txt file, and out the character frequency. This an assignment for Uni, I might as well be completely honest.

    So the program will count every character used in the program, and output how many times it been used.

    If anyone could help, and point me down the right path. This is only part 1 of 3... It would be amazing to final finish this part.

    Many thanks!
    -Tim
    Attached Files Attached Files

  2. #2
    ZuK
    ZuK is offline
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    Quote Originally Posted by reelbigtim View Post
    It seems that the create and insert seems to work.
    No insert doesnt work. It doesn't insert anything into the tree and fails to return a node as specified in the prototype.

    Kurt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BST (Binary search tree)
    By praethorian in forum C++ Programming
    Replies: 3
    Last Post: 11-13-2005, 09:11 AM
  2. Binary Tree Search
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 01-13-2004, 12:40 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Binary Search Tree, Inserting node
    By cheryl_li in forum C Programming
    Replies: 1
    Last Post: 09-13-2003, 04:53 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 11:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21