Author: Nathanlie Ortega
Email: NathanlieOrtega.Dev@gmail.com
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.
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.
-
Navigate to the project folder:
cd SinglyLinkedListImplementation
-
Compile:
g++ LinkedList.cpp main.cpp Node.cpp
-
Run:
./a.exe
-
Navigate to the project folder:
cd SinglyLinkedListImplementation
-
Compile:
g++ LinkedList.cpp main.cpp Node.cpp -o SinglyLinkedList.exe
-
Run:
./SinglyLinkedList.exe
+-------------------------------------------------+
| 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)......