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
C++ComponentsLanguage FeatureLearn C++

This Is How To Use Shape Components In A Windows C++ App

C++ Builder is a great IDE which comes with the FireMonkey UI framework. While Firemonkey is a powerful multi-platform UI framework which lets you create apps which work on desktop as well as mobile phones and tablets you can also use it to add many shape types to your C++ app on Windows. TShape is the ancestor class to most other classes defined in the Objects unit. It defines the common…
Read more
C++Introduction to C++Learn C++

What Is The Modern Way To Read Formatted Strings In A C++ App?

How can we read a formatted string in a C++ app? How can I convert a string to a stringstream ? What is string? What is std::stringstream? What are the methods that can be used to read the formatted strings? Is there a simple example on how to read a formatted string ? Is there a full C++ app example showing reading of a formatted string in C++? Let’s answer these questions. When we try…
Read more
C++Introduction to C++Learn C++

Learn To Display Numbers With Formatting In C++ Software

When we use floating numbers, we sometimes need our C++ software to display them in a consistent way so we can compare numbers next to one another or with the preceding or successive numbers in an order. We can arrange formatting display of numbers both integer and precision side. How can we format the display of numbers in C++? How can we use fixed, scientific or default formatting in C++…
Read more