Sunday, July 12, 2009

What is the dev c++ code for making stacks and queue?

what is the dev c++ code for making stacks and queue?





please help its my finals project





it goes like this:





input no of locations: 5


[______]


[______]


[______]


[______]


[______](you can push numbers it will go to the bottom, then you can pop it to be removed , last in, first out, you can also make mathematical operations..)

What is the dev c++ code for making stacks and queue?
That is very subjective... you can do it as you want!!! for example if u wanna keep it simple just declare an array pointer of any data type, and simulate the "push" and "pop" instructions, that is, Push append elements to that array pointer's "TOP", POP just delete the value at the "TOP" of this array pointer... or make a fixed array of values...





It's just a little of imagination... if this solution is too simple for you... try to do linked lists.





Hope this helps





BY!!
Reply:May be you can contact a C++ expert to help you code your assignment. Check websites like http://askexpert.info/


No comments:

Post a Comment