https://github.com/programveins/stack-adt
Stack ADT - Using Doubly Linked List in C Language
https://github.com/programveins/stack-adt
Last synced: 8 months ago
JSON representation
Stack ADT - Using Doubly Linked List in C Language
- Host: GitHub
- URL: https://github.com/programveins/stack-adt
- Owner: programVeins
- Created: 2020-10-07T09:53:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-07T09:54:12.000Z (over 5 years ago)
- Last Synced: 2025-03-06T15:34:33.105Z (about 1 year ago)
- Language: C
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stack ADT - Using Doubly Linked List
### Files included
* main.c
* dlist.c
* dlist.h
* stack.c
* stack.h
* Makefile
### Compilation
If you are using UNIX/Linux, use `make` to compile and `make clean` to clean up after running the program.
Please use `gcc main.c stack.c dlist.c -o stack` if you are using gcc compiler (other than linux)
Run with ./stack
### Program Menu
The program offers a context menu in the beginning. Press 1 to initiate a new stack. Then use the other options to operate on it. Press 7 in the menu to quit the program. Press 6 at any point to view the stack's visual representation.
### Functions implemented
* createStack()
* isEmpty()
* push()
* pop()
* peek()