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

Everything You Need To Use auto_ptr Smart Pointer in C++

In computers, all data and operations during runtime are stored in the memory of our computers, IoTs, or in other microdevices. This memory is generally a RAM (Random Access Memory) that allows data items to be read or written in almost the same amount of time, irrespective of the physical location of data inside the memory. This post will walk you through static and dynamic memory allocation…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn How To Use Wide String Clear Methods in C++

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 instantiation of the basic_string class template. In C++, there are several type definitions for common character types and one of them is std::wstring types that are defined in…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

How To Access Individual Character Elements Of A C++ String

Modern C++ uses Strings, Wide Strings, and Unicode Strings to support worldwide languages. Strings (std::string) uses char as the character type which means they are ASCII chars and they are an instantiation of the basic_string class template. In C++, there are several typedefs for common character types and one of them is std:string types that are defined in…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

How Do I Add Characters to Strings in C++ The Right Way?

Modern C++ uses Strings, Wide Strings, and Unicode Strings to support worldwide languages. Strings (std::string) use char as the character type, which means they are ASCII chars and they are an instantiation of the basic_string class template. In C++, there are several typedefs for common character types and one of them is std: string types that are defined in…
Read more