https://github.com/flopsreallygotit/stack
For average data structures enjoyers
https://github.com/flopsreallygotit/stack
Last synced: about 1 year ago
JSON representation
For average data structures enjoyers
- Host: GitHub
- URL: https://github.com/flopsreallygotit/stack
- Owner: flopsreallygotit
- Created: 2022-09-30T11:26:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-02T14:23:47.000Z (over 3 years ago)
- Last Synced: 2025-01-26T20:14:13.129Z (over 1 year ago)
- Language: C++
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stack
This is my first experience in data structures! \

# Main commands
## Constructor and destructor
Constructs and destructs stack:
```
stack *myCoolStack = stackConstructor(1);
stackDestructor(myCoolStack);
```
## Push and pop
Pushes / pops value in / out of stack:
```
stackPush(myCoolStack, 10);
elem_t myCoolElement = 0;
stackPop(myCoolStack, &myCoolElement);
```
## Dump
Dumps info about stack in terminal:
```
stackDump(myCoolStack);
simpleStackDump(myCoolStack);
```
# Quick Start
First clone repo:
```
git clone "https://github.com/flopsreallygotit/Stack.git"
```
Then switch to Stack/Example/ and write:
```
make
./main
```
Good job! Now you can watch an example and then use it!
Try to hack this!

Push & Pop & Good Luck & Have Fun!