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 Get A Substring Of A String In A C++ App

How can I use substr() method of std::wstring? How can I get a substring of a string in a C++ app? 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++17Introduction to C++Language FeatureLearn C++

This Is How To Use Time And Its Properties In C++ Software

How can we use Time when writing C++ software? How can we obtain local time or UTC time in our C++ apps? How can we get each property of a time such hours, mins, seconds? In programming we have two important parameters that we use, which are Date and Time properties. The date and time properties are obtained from a timer or time module such as an RTC DS3231 module which is used on IoTs. The…
Read more