Example of overloading the + operator in C++(Chain Concatenation)

Cstring class that supports string concatenation, ie, that joins the contents of 2 strings and adds them to another target string.
I developed this library in the 2000s, and it was useful in old compilers that did not support the STL, but now with the inclusion of the class compilers that did not support the STL, but now with the inclusion of the standard std::string class, this library std::string standard, this library has been deprecated, but I’m making it available to the but I am leaving it available to the community, as a didactic example of the overloading of the overloading of the + operator, in objects of a class.
Example:
CString first (“A sum of strings”), second (“Impossible”), destination;
destination = first + second; //concateneo
destination.Write(); //writes the destination on the screen
Developed by:
YACSHA – Software & Desing, since 1999, Lima – Perú
The World of Chaos – EL MUNDO DEL CAOS – Unlimited Programming
You can DOWNLOAD the SOURCE CODE and executable software for FREE from here:
Join The World of Chaos Developer Community😃
Contribute to the project on Github!HISTORY
- Version 2 – 19-IV-2024
- Update math-and-others\concateo – Porting to VC++ 2017 using winbgi
- Using strcpy_s and strcat_s instead old and not secure strcpy and strcat
- Version 1 – 26-XI-2000
- First version for Borland C++ 3.1 and Turbo C 3.0