C++C++11C++14C++17Language FeatureLearn C++

Learn To Develop Your Own Powerful Windows Media Player In C++ Builder

Media Players are good to play sounds or videos. You can easily create your own media player in C++ Builder. MediaPlayer (TMediaPlayer) component is very good to develop your media player application. You can use aTMediaPlayercomponent for easy access to media files.MediaPlayer (TMediaPlayer)is used with TMediaPlayerControl. Set MediaPlayer to link aTMediaPlayerto…
Read more
C++C++11C++14C++17ComponentsLanguage FeatureLearn C++

Quickly Learn About Basic Windows C++ Components (QuickLook Part 4)

TrackBar Trackbar is a slider on the form that allows users to get numeric values by dragging the track. A track bar can set integer values on a continuous range. It is useful for adjusting properties like color, volume and brightness. The user moves the slide indicator by dragging it to a particular location or clicking within the bar. We can set its Oriantaion to Horizantal or Vertial. We…
Read more
C++11C++14C++17Learn C++

The Main Function of a C++ Program

The source code written in C++ must be compiled (i.e. translated to the machine code) by one or another compiler such as Embarcadero RAD Studio C++ compilers before in can be runned. In general, there are two types of the resulting machine code: library and main executable…
C++11C++14C++17Learn C++

Traversing sequences without writing explicit loops

The posts General Loop Statements in Modern C++ and Range-for-statement in modern C++ cover ways to write explicit loops. But explicit loops can be tedious to write and, what is more important, – harder to read, because the resulting code requires to spend the extra time by others in order to understand what is going on in the explicit loop. As alternative, the C++ standard library provides…
Read more
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