Skip to content

Nathanlie-Ortega/SinglyLinkedListImplementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SinglyLinkedListImplementation

Author: Nathanlie Ortega

Email: NathanlieOrtega.Dev@gmail.com

Brief Description

A C++ console application developed by Nathanlie Ortega. This program implements a singly linked list with operations to insert nodes, search for values, and print the list. Features a menu-driven interface and proper memory management with dynamic allocation and deallocation. Demonstrates core concepts of linked list data structures.

Files and Structure

  • main.cpp: Main logic and menu interface.
  • LinkedList.h, LinkedList.cpp: LinkedList class and operations.
  • Node.h, Node.cpp: Node class for linked list nodes.

Compilation and Execution

  1. Navigate to the project folder:

    cd SinglyLinkedListImplementation

  2. Compile:

    g++ LinkedList.cpp main.cpp Node.cpp

  3. Run:

    ./a.exe

Alternative Way to Compile and Execute:

  1. Navigate to the project folder:

    cd SinglyLinkedListImplementation

  2. Compile:

    g++ LinkedList.cpp main.cpp Node.cpp -o SinglyLinkedList.exe

  3. Run:

    ./SinglyLinkedList.exe

Expected Output:

+-------------------------------------------------+
|      Singly Linked List Implementation          |
|      Author name: Nathanlie Ortega              |
|      NathanlieOrtega.Dev@gmail.com              |
+-------------------------------------------------+

The Menu:
1. Insert
2. Search
3. Print
4. Exit
Enter Choice: 1

Enter a Value: 16

The Menu:     
1. Insert     
2. Search     
3. Print      
4. Exit       
Enter Choice: 1

Enter a Value: 33

The Menu:     
1. Insert     
2. Search     
3. Print      
4. Exit       
Enter Choice: 1

Enter a Value: 8

The Menu:
1. Insert
2. Search
3. Print
4. Exit
Enter Choice: 3
16 -> 33 -> 8

(Continuation)......

About

A C++ console application developed by Nathanlie Ortega. This program implements a singly linked list with operations to insert nodes, search for values, and print the list. Features a menu-driven interface and proper memory management with dynamic allocation and deallocation. Demonstrates core concepts of linked list data structures.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages