STACK-C


Write a program that imlements the ADT stack.

1.Push the elements -3.0,-8.0,6.0
2.Implement a POP operation that deletes the first two elements
3.Ensure that the IsEmpty()operation and Isfull is implemented appropriately.
4.Display the results after the completion of PUSH and POP operations.

HOW CAN I DO THIS???... i just started this topic in class......
im point blank in getting this done..... NEED SOME HELP PLEASE!!
thanku for that link....read thro wat i saw....made a few notes....but i still dont understand how to write a program using stack... i got a good understanding of what its all about.... but just dont know how to code it.................................sigh.....................help please.
What are you stuck on?
could someone show me a brief outline of what a simple program using stack looks like. from begining to end...with explanation... using c...not c++.....that would be very helpful.
thanku...it keeps giving me c++ code..thats y...been trying to avoid that .. wanted c...
but...im figuring some stuff out... thanku again.
I'm not sure what you want.

If you want to understand it, then the forum link explains the principle.

If you want to see how to use it, then the public links show how it's used in C++.

If you understand it in principle and seen examples how it's used in C++, I don't understand why you can't implement it in C.
Topic archived. No new replies allowed.