This project implements a simple text editor using Object-Oriented Programming (OOP) principles in C++.
It demonstrates operator overloading, dynamic memory allocation, and class-based text manipulation.
📋 Description
The project consists of two main classes and an interactive menu that allows manipulating words and lines of text.
🔸 Word Class
Handles operations on individual words:
- Reversing characters
- Changing letter cases
- Replacing digits with their complements
- Adding or removing characters dynamically
🔸 Line Class
Manages a full sentence or line of text:
- Supports word-level operations
- Reverses or shifts entire lines
- Handles dynamic arrays of words
🔸 Main Menu
Interactive console interface where the user can:
- Create new lines
- Edit existing ones
- Apply operations to words and lines dynamically
🧠 Concepts Demonstrated
- Classes and Objects
- Dynamic Memory Management
- Operator Overloading
- Encapsulation
- Interactive Console Programming
🚀 How to Run
- Open the project in Visual Studio or VS Code
- Compile and run
main.cpp - Follow the on-screen menu to interact with the text editor
Developed by Haim Galata as part of the
Introduction to Object-Oriented Programming course (Year 1)