Thread: bst in postorder to file algorithm?

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    25

    bst in postorder to file algorithm?

    i need to create a function (inside bst.h) that will save the contents of the bst (before deleting the whole bst when the program would be terminating) in a file, containing the numbers in the bst in postorder..

    can anyone share an algorithm on how to implement this?

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You know what postorder traversal means, right? Now instead of "print" you have "write to file".

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    25
    yeah i get it.thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  3. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  5. Simple File Creation Algorithm
    By muffin in forum C Programming
    Replies: 13
    Last Post: 08-24-2001, 03:28 PM