I just wanna know it anybody can help me with making stack (first in last out) in pascal.
Thanks!
stack
Moderator: Board moderators
You can use an array:
Or you may also try linked list.
Is that what you mean? ![:wink:](./images/smilies/icon_wink.gif)
Code: Select all
top
_______________________________
| 10 | 20 | 15 | 40 | 25 | -- |
Code: Select all
top
______ ______ ______ ______ ______ ______
| 10 | -> | 20 | -> | 15 | -> | 40 | -> | 25 | -> | -- |
![:wink:](./images/smilies/icon_wink.gif)
7th Contest of Newbies
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org