Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom MyString Class in C++

A custom implementation of a String class in C++ built from scratch without using std::string. This project demonstrates object-oriented programming, dynamic memory management, deep copying, and operator overloading.

Features

  • Dynamic memory allocation
  • Constructors and Destructor
  • Copy Constructor
  • Copy Assignment Operator
  • Deep Copy Implementation
  • String Length
  • Character Access
  • String Comparison
  • Operator Overloading

Project Structure

Custom-MyString-CPP/
│
├── Main.cpp       # Driver program
├── MyString.h     # Class declaration
└── MyString.cpp   # Class implementation

Technologies Used

  • C++
  • Git
  • GitHub
  • Visual Studio Code

Build & Run

Compile the project using:

g++ Main.cpp MyString.cpp -o MyString

Run:

Windows

MyString.exe

Linux/macOS

./MyString

Concepts Covered

  • Object-Oriented Programming
  • Dynamic Memory Management
  • Rule of Three
  • Operator Overloading
  • Pointers and Memory Safety

Author

Jyatin Singh

About

A custom String class implementation in Modern C++17 demonstrating the Rule of Five, dynamic memory management, move semantics, and operator overloading.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages