A C++ project demonstrating circular linked list implementations (simple and doubly) for managing person data.
Table of Contents
This project contains C++ implementations of circular linked lists for managing person data:
listaCircularSimplePersonas.cpp: Implements a singly circular linked list with operations for inserting, deleting, searching, and file persistence.listaCircularPersonasDoblementeEnlazada.cpp: Implements a doubly circular linked list with bidirectional traversal, offering the same operations plus reverse display.
Each implementation includes:
- Insert at beginning/end
- Insert at random position
- Insert between two nodes
- Delete by name
- Search by ID
- Display list (forward/reverse for doubly)
- File persistence (CSV format)
To get a local copy up and running, compile the source code natively via GCC/G++.
- GCC / G++ (MinGW on Windows)
- C++11 or higher
- Clone the repo
git clone https://github.com/jerichd4c/circular-linked-list-assignment.git
- Navigate to the project directory
cd circular-linked-list-assignment - Compile the simple list version:
g++ listaCircularSimplePersonas.cpp -o output/listaCircularSimplePersonas.exe
- Compile the doubly linked list version:
g++ listaCircularPersonasDoblementeEnlazada.cpp -o output/listaCircularPersonasDoblementeEnlazada.exe
Execute the preferred binary to run the interactive console environment:
- Copy the desired data file from
archivos_de_personas/listaOrdenada/orarchivos_de_personas/listaDesordenada/to theoutput/folder - Run the executable from the
output/folder - Select from the menu options
# Run Simple Circular List
./output/listaCircularSimplePersonas.exe
# Run Doubly Circular List
./output/listaCircularPersonasDoblementeEnlazada.exeID;nombre;apellido;edad;genero;altura
Distributed under the MIT License.