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

How To Use Wide String Iterators In Modern C++ Software

How can I access a character of a wstring? How can I use the at() method of wide strings in modern C++ software? Can I use front() and back() methods in std::wstring to access characters? Modern C++ uses Wide Strings and Unicode Strings to support worldwide languages. Wide Strings (std::wstring) uses wcha_tr as the character type which means they are 2-bytes chars and they are…
Read more
C++Language FeatureLearn C++

How To Use fscanf In Your Own C++ Software

What is the fscanf function? How can I use fscanf in C++ software? Is there an example to the fscanf function in C++? What is the syntax of fscanf? Where can I find format specifiers for the fscanf function? Let’s answer these questions. A little history of the fscanf function fscanf function is an old C function (since C95) that reads data from files, scans, and formats input from a file…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

How To Use The rfind() Search Method in C++ Software

How can I find a string in a string in reverse direction? What kind of methods I can use in C++ software to find a string in a std::string? How can I use rfind() method with strings? Modern C++ uses Wide Strings and Unicode Strings to support worldwide languages. Wide Strings (std::wstring) uses wcha_tr as the character type which means they are 2-bytes chars and they are an…
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