An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Stack

This is my first experience in data structures! \
![image](https://user-images.githubusercontent.com/89828695/193616495-c5bce9f4-a4be-4214-b6f3-81795cecb22a.png)

# 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!

![image](https://user-images.githubusercontent.com/89828695/193617130-4d4649ce-4b1c-405f-9daf-b96f5f532bd7.png)

Push & Pop & Good Luck & Have Fun!