C++C++11C++14C++17Introduction to C++Learn C++

What You Need To Know About Virtual Destructors In C++ Apps

Destructors are not only used in classes but also used with struct and union data types. When you construct an object, sometimes you need operations to deconstruct. Do you want to learn what is Virtual Destructor or what kind of methods we have that we can declare and use a virtual destructor? In this post, we will try to explain how to use Virtual Destructor in your C++ apps. What is a C++…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

How To Erase/Delete Part Of A String In C++ Software

How can I use erase() method of std::string? How can I erase part of a string in my C++ software? Here are the answers with C++ examples. Generally, as an introduction to C++, in addition to int, float, double there is another data type called string that we use for alphanumeric variables. In C++ there are several typedefs for common character types are provided: String types are defined in…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn About Pure Virtual Destructors In C++ App Classes

If you construct an object, sometimes you need operations to deconstruct. Destructors not only used in classes but also used with struct and union data types. Do you want to learn what a Pure Virtual Destructor is in a C++ App, or what kind of methods we have that we can declare and use a pure virtual destructor? In this post, we will try to explain how to use Pure Virtual Destructor in C++…
Read more