The C++ Programming Language is huge, it may have millions and millions of keywords, and commands with every new library or feature addition. In programming, it is hard to memorize all of these keywords. Sometimes when we are using some keywords, we may have some questions about them, because we want to learn and memorize them logically. If you are using C or C++, we may have these questions…
This Is How To Use Character Literals in Modern C++
January 17, 2023
One of the basic data types of programming is characters, one, two or four bytes of data elements. Characters are the part of strings and strings are important in every step of programming and they should be used carefully and displayed carefully they should be as global as…
How can I use copy() method of std::wstring in a C++ app? How can I copy a wide string to a wide char array? Here are the answers with C++ examples.
What is a WString?
wstrings (Wide Strings) are the string class for characters that has 2 bytes that represented with…
What is the swscanf function? How can I use swscanf in a C++ app? Where can I find format specifiers for the swccanf function? What is the syntax of swscanf? Where can I find full examples of using the swscanf function in a C++ app?
What is the swscanf function?
The swscanf function is an old C function (since C95) that reads data from a variety of sources, scans and formats input from a…
Modern C++ uses Wide Strings and Unicode Strings to support worldwide languages. Wide Strings (std::wstring) uses wchar_t as the character type which means they are 2-bytes chars and they are an instantiation of the basic_string class template. In C++, there are…
How To: Use Variables In C++ Programming
March 20, 2021
Variables are containers for storing data values in different types. These values are mostly stored in the memory location (RAM) of device (PC, tablet, mobile, IoT…). A variable can be defined in it’s type and with it’s name with a given value, this…