Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!vsi1!indetech!jack!jtanner From: jtanner@jack.sns.com (Jason Tanner) Newsgroups: comp.lang.c Subject: Alphabetizing stacks Message-ID: <1991Apr21.121232.2659@jack.sns.com> Date: 21 Apr 91 12:12:32 GMT Sender: jtanner@jack.sns.com (Jason Tanner) Organization: Systems'n'Software Lines: 12 I have been faced with an interesting dilema. in a program I am writing I need to alphabetize a Stack (of any length). The alphabetizing will occur after the stack is ientered (push) and before I start removing things from it (pop). The only pointers in the stack are ptrtop (top of stack) and ptrnext(used to point to each members next member) and ptrnew but this is used just for pushing on new members of the stack. Any ideas on aplhabetizing stacks please post here. If anyone has actuall example sourc-code of this please send it via private mail Thank you! -- |----------------------------------------------------------------------------| | jtanner@jack.sns.com - - Coke IS it! - - Ask me, I don't work here | | This space was intentionally left filled. | |------------------------------Dare to think!--------------------------------|