C++Introduction to C++Language FeatureLearn C++

This Is How To Extract A File Extension in A Windows C++ App

C++ Builder has specific Path Manipulation Routines that allows your C++ app to edit, extract, get and set drive name, directory name, file name, file extensions and so on. These methods are combined in Vcl.FileCtrl, System.IOUtils, System.SysUtils libraries. These path manipulation methods are easy to use and easy to get or set file path strings in that operating system. These can be used…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

How To Replace A String Into Another String In A C++ App

How can I use replace() method of std::string in a C++ app? How can I replace a string into another string? Can we replace a char array into a string? How can I replace a number of chars into a string? Is it possible to replace a string with a substring of another string? Here are the answers with C++ examples. First, let’s recap on how strings work in a C++ app In addition to int…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn About Deleted Implicit Destructors in A C++ App

Do you want to learn about deleted implicitly declared destructor in a C++ app? Do you know what kind of methods we have that we can declare and use to deleted implicitly-defined destructors? What is defaulted destructor? In this post, we will try to explain deleted implicitly declared destructors in Classes with given examples. What does a Constructor mean in a C++ app? The Constructor in…
Read more
C++Introduction to C++Language FeatureLearn C++

How To Convert An Integer To A String In A C++ App

How can I make my C++ app convert an integer number to a string? How can I put an Int into the Text property of a component? What is the IntToStr method and what does it do? Can we use printf() method with int in modern C++? Let’s answer these questions. What is the difference in a C++ app between a String and a Unicode string In a Modern C++ app, we use the Unicode string format…
Read more