Skip to content

C++ project demonstrating OOP principles through a simple text editor — operator overloading and dynamic memory management.

haimgalata/text-editor-oop-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Editor (C++)

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

  1. Open the project in Visual Studio or VS Code
  2. Compile and run main.cpp
  3. 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)

About

C++ project demonstrating OOP principles through a simple text editor — operator overloading and dynamic memory management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages