C++11C++14C++17Learn C++

Switch Statement in Modern C++

The C++ language provides the switch statement which can be used to replace the set of if statements (see If Statements in Modern C++). First of all, let’s define the enum type Traffic_light_color as follows: enum class Traffic_light_color { red, yellow, green }; Then, the following snippet: // Snippet 1 #include <stdexcept> #include <string_view> std::string_view…
Read more
C++Learn C++Videos

Dev-C++ Download And Installation

Welcome to new Embarcadero Dev-C++ video series. In this series, I will introduce you the new Embarcadero Dev-C++. In this tutorial, you learn about Embarcadero Dev-C++ and its installation. Embarcadero Dev-C++ is a new and improved fork (sponsored by Embarcadero) of…
C++Learn C++Videos

Learn C++ With Embedded: Customizing Dynamic Memory Management in C++ by Ben Saks (CPPCon 2020) Videos

For several common programming problems, Dynamic Memory Allocation is a normal solution. New-expressions in C++ places dynamic memory through a function called operator new. However, too many resource-stricted systems fully ignore the use of new-expressions for customization, which is unfortunate because it has been developed for such purposes. This talk demonstrates how tailored dynamic memory…
Read more
C++C++11C++14C++17Code SnippetLanguage FeatureLearn C++Syntax

Learn About Handling Android32 Permissions In C++

Mobile android applications developed in C++ Builder requires permissions to use some part of mobile devices (sensors, camera etc..). These should be allowed by the user. an these permissions can be checked over the project options from Project > Options > Application > Uses Permissions section. Some of these permissions were listed in this document…
Read more