Hello Everybody Here !!
I'am a noob to programming, i am having problem in understanding the STACKS in C++, I'm just confused that how to Delete a Value From Stak, How to count The Top and One More thing How to Transfer the values of One Stack into another by using a single "for" Loop.
The logic i've been tryng to implement is that if a want to dlete a value from stack the i have to declare a second stack, then the top of the first stack will be reduced by one i.e. "top=top-1;" then tranfer the values of first stack into second one till the index to be deleted, then just push back the values from stack2 to stack1 and the desired value wil be delete,, but am not able to do that in a single loop..
i'll be very thankful if somene answer me with a detailed program, abviously in c++ , am using Turbo C++ ...
Thanks You
Regards
Pappu-Linux