C++C++11C++14C++17Code SnippetComponentsIntroduction to C++Language FeatureLearn C++

Modern Windows "Hello World" 3D Example in C++ Builder

If you are a beginner “Hello World” examples are good to understand feature of that programming language. It is good to understand how to edit text, how to write in its format, how to compile and link, how to debug and execute, how to deploy or release. This example below is a modern “Hello World” example on Windows which runs with C++ Builder. Modern applications has…
Read more
C++11C++14C++17IteratorsLearn C++

Range-for-statement in Modern C++

Since C++11 there are elegant way to access each element of a containers (or, more generally, sequences) – so called range-for-statement. The syntaxes are follow: template<class Container> void foo(Container& container) { for (auto element : container); // (1) for (const auto element : container); // (2) for (auto& element : container); // (3) for…
Read more
jaJapanese