C++C++11C++14C++17Code SnippetLearn C++Syntax

How To Use std::sort With A Lambda Expression In C++

In C++, the Standard Template Library or STL has many algorithms for operations like searching, counting, and manipulation of ranges and their elements. C++17 has a new feature that you can sort with std::sort parallel STL algorithm. Lambda Expressions are another great feature of C++ and they can be used to sort data by std::sort parallel STL algorithm. Make sure you’re using a modern C++ Code…
Read more
C++Introduction to C++Language FeatureLearn C++Syntax

Everything You Need To Use Dates Properly In C++ Software

How can we use DateTime correctly in our C++ software? How can we display date in format in C++ Builder? How can we get each date and time property individually such as hours, mins, or seconds?We have discussed “Learn to Use Date and Its Properties in C++” before. All the examples in that article are able to run in C++ Builder too since they stick to CLANG standards. In this post, we will also…
Read more
C++Introduction to C++Language FeatureLearn C++Syntax

How To Set Runtime Process Priority On Windows In A C++ App

The C++ Builder VCL library has a lot of Windows-specific libraries for controlling the runtime behavior of our applications. We can easily change the process priority of the current task in thread/core. In this post, you’ll get answers to these questions: How I set runtime process priority on my Windows C++ application?Can I change the process priority level at runtime?May I apply specific…
Read more