Skip to content

jerichd4c/circular-linked-list-assignment

Repository files navigation

Circular Linked List Assignment

A C++ project demonstrating circular linked list implementations (simple and doubly) for managing person data.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License

About The Project

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)

Built With

  • C++

(back to top)

Getting Started

To get a local copy up and running, compile the source code natively via GCC/G++.

Prerequisites

  • GCC / G++ (MinGW on Windows)
  • C++11 or higher

Installation

  1. Clone the repo
    git clone https://github.com/jerichd4c/circular-linked-list-assignment.git
  2. Navigate to the project directory
    cd circular-linked-list-assignment
  3. Compile the simple list version:
    g++ listaCircularSimplePersonas.cpp -o output/listaCircularSimplePersonas.exe
  4. Compile the doubly linked list version:
    g++ listaCircularPersonasDoblementeEnlazada.cpp -o output/listaCircularPersonasDoblementeEnlazada.exe

(back to top)

Usage

Execute the preferred binary to run the interactive console environment:

  1. Copy the desired data file from archivos_de_personas/listaOrdenada/ or archivos_de_personas/listaDesordenada/ to the output/ folder
  2. Run the executable from the output/ folder
  3. Select from the menu options
# Run Simple Circular List
./output/listaCircularSimplePersonas.exe

# Run Doubly Circular List
./output/listaCircularPersonasDoblementeEnlazada.exe

Data File Format

ID;nombre;apellido;edad;genero;altura

(back to top)

License

Distributed under the MIT License.

(back to top)

About

A C++ project implementing circular linked lists (simple and doubly) for managing person data with file persistence.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages