Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azrielx86/linked-list-cpp
An example of a double linked list in C++
https://github.com/azrielx86/linked-list-cpp
data-structures linked-list
Last synced: about 1 month ago
JSON representation
An example of a double linked list in C++
- Host: GitHub
- URL: https://github.com/azrielx86/linked-list-cpp
- Owner: Azrielx86
- Created: 2022-07-12T02:04:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-13T20:56:20.000Z (over 2 years ago)
- Last Synced: 2023-07-20T22:14:59.336Z (over 1 year ago)
- Topics: data-structures, linked-list
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Double linked list example in C++
There is an example of a double linked list that supports multiple types like int, float, double, string, etc.
For this example, it creates three lists: int, float and string.
## Compilation
I know that it don't need cmake (it's like killing a fly with a bazooka).
With cmake
mkdir build && cd build
cmake ..
cmake --build .With clang or gcc
clang++ **/*.cpp -o linked-lists
org++ **/*.cpp -o linked-lists
## Menus
Main menu
Select a list:
[1] int
[2] float
[3] string
[q] quit
option >Action to list
Using list: int
Select Action:
[1] add
[2] delete
[3] clear
[r] return
option >Example with data added
Int list: [15] [56] [76] [96] [21] [212]
Float list: [43.1] [54] [65.3] [76.4]
String list: [Hello] [World] [from] [C++!]
Select a list:
[1] int
[2] float
[3] string
[q] quit
option >