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

What Is The Erase WString Method In A Modern C++ App

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

How To Make A Comparison Between Strings In A C++ App

How can I use the compare() method of std::string in a C++ app? How can we use C++ to compare strings? Here are the answers with C++ examples. 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 header <string>. strings are…
Read more
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