Generic stack library in c
-
Hello, I would like to get some ideas on writing a stack library using C language, that will as generic as possible It should support different data types - (handle strings, ints, chars, doubles, and other misc data types), different stack sizes, etc... I am open to hear about any ideas that may come, (See prototypes, and get some code if anybody happen to have it already) and/or will be happy if anyone can referee me to places with this issue already solved. Thanks.
-
Hello, I would like to get some ideas on writing a stack library using C language, that will as generic as possible It should support different data types - (handle strings, ints, chars, doubles, and other misc data types), different stack sizes, etc... I am open to hear about any ideas that may come, (See prototypes, and get some code if anybody happen to have it already) and/or will be happy if anyone can referee me to places with this issue already solved. Thanks.
Generic Data Structures Library[^] apparently contains a stack implementation, so you can take a look at that.
-
Hello, I would like to get some ideas on writing a stack library using C language, that will as generic as possible It should support different data types - (handle strings, ints, chars, doubles, and other misc data types), different stack sizes, etc... I am open to hear about any ideas that may come, (See prototypes, and get some code if anybody happen to have it already) and/or will be happy if anyone can referee me to places with this issue already solved. Thanks.
The Standard Template Library (STL) has a
stack
template class that you can use. http://www.cplusplus.com/reference/stl/stack/[^] http://www.codersource.net/c/standard-template-library/stack-stl-container-class.aspx[^]«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
Hello, I would like to get some ideas on writing a stack library using C language, that will as generic as possible It should support different data types - (handle strings, ints, chars, doubles, and other misc data types), different stack sizes, etc... I am open to hear about any ideas that may come, (See prototypes, and get some code if anybody happen to have it already) and/or will be happy if anyone can referee me to places with this issue already solved. Thanks.
try STL::Stack class for same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You