Question:
how to make stack in c++?
AnnieMae
2010-01-11 01:04:41 UTC
we have this activity that I can't quite get it because our professor is not teaching us well.

the problem:
create a c++ program that will stimulate a stack using stack operations and basic c++ programming technique.

stack size=10

output:

stack manipulation
[1]initialize stack
2 push
3 pop
4 print stack
5 exit program
choose an operation
Three answers:
?
2010-01-13 13:28:36 UTC
core C++ already has a stack data structure, but it is not clear from your question what you want to do with it.
2016-02-26 00:12:16 UTC
this you should download a debugger and try diffrent calling conventions. Write a program and debug it.....I suggest ollydebug or IDA you will notice for the different conventions a different stack. IE thiscall will pass ecx "this" to register when there are internal call you will see that its part of the same class etc etc etc
single_minded
2010-01-11 02:08:10 UTC
Well, i can tell you the links, and you have to find the required code you want.



http://www.dreamincode.net/forums/showtopic15327.htm

http://users.cis.fiu.edu/~weiss/dsaa_c++/code/

http://cpp.comsci.us/examples/stack/arraystack.html



related threads at yahoo:

https://answersrip.com/question/index?qid=20090822062537AA6bvvZ


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...