Hi all:
I need to create a stack that stores string pointers. But I do not really know how exactly I am going to start, can any one give me a hint?
Thank you
Printable View
Hi all:
I need to create a stack that stores string pointers. But I do not really know how exactly I am going to start, can any one give me a hint?
Thank you
I can give you recursive help.
^ looool :P
Well, start by creating a struct that will be your stack. Then you will need to functions, pop() and push() that will get a parameter the stack and add/extract elements.
Be more specific on what you want. For example, do you know how to create a basic linked list in C??
Heh... I guess I just get tired of telling people to post more... it makes me seem like I am jerk who never answers questions. So at least I am a jerk with a sense of humor who still wants more info. This is one area where C++ shines, yuzhangoscar. But I for one would never tell someone to drop C in exchange for C++ on a project.