bst in postorder to file algorithm?

This is a discussion on bst in postorder to file algorithm? within the C Programming forums, part of the General Programming Boards category; i need to create a function (inside bst.h) that will save the contents of the bst (before deleting the whole ...

  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,185
    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, 11:39 PM
  2. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 02:04 PM
  3. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 04:53 AM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 04:39 AM
  5. Simple File Creation Algorithm
    By muffin in forum C Programming
    Replies: 13
    Last Post: 08-24-2001, 04:28 PM

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