In C++, STL Standard Template Library has many algorithms for some operations like searching, counting, and manipulation of ranges and their elements. C++17 has a new feature that you can sort vectors with Parallel STL Algorithm. In C++ Builder, Vectors can be used and sorted by Parallel STL Algorithm as below.
#include <vcl.h>
#include <stdio.h>
#include <vector>
#include…
Learn C++ With Performance Matters by Emery Berger (CPPCon 2020) Video
February 22, 2021
Performance is one of the key reasons why so many C++ programmers enjoy the language. This video will be addressing some of the significant and unexpected challenges faced by C++ programmers trying to achieve high performance on modern hardware platforms: performance is much…
Learn To Code Simple Linked List In Modern C++ On Windows
February 21, 2021
ALinked List, composed of structural elements and it is a linear data structure, and each element is stored at different memory locations. Linked lists are good to add, inserts, subtract, delete each element from this list. Linked lists were popular much in the 80s to…
Learn to Develop a Perseverance Mars Simulation 3D in C++ Builder
February 19, 2021
Do you want to develop your own Mars Simulation with the latestMars Perseverance Rover3D Model orMars Ingenuity Helicopter3D Model? C++ Builder is very easy to develop this kind of simple simulations. You just need a 3D object model and some colors…
Bubble SortMethod is one of the sorting methods which is the simple sorting algorithm that runs by repeatedly swapping the adjacent elements if they are in the wrong order.Bubble sortsometimes referred to assinking sort.
You can use…
Learn C++ With Functional Error and Optional-value Handling with STX by Basit Ayantunde (CPPCon 2020) Video
February 18, 2021
Error-handling is probably the most divergent part of C++. Many coding guidelines partially allow exception or completely bans, and this leads to many projects supporting multiple error-handling interfaces, such as exceptions, error-prone c-style error-handling, and/or custom error-handling types. This video talks about STX; a C++ library that seeks to fix some of these issues with error and…
Tutorial: Learn To Copy Matrix As A Excel Clipboard In Modern C++
February 17, 2021
Clipboardalso called thepaste buffer, is a buffer that operating systems provide to copy things (texts, bitmaps, tables, etc.) for the short term and transfer within and between application programs. The clipboard is usually temporary and unnamed, and its…
Learn C++ With Introducing Microsoft's New Open Source Fuzzing Platform by Michael Walker and Justin Campbell (CPPCon 2020) Video
February 16, 2021
Microsoft is currently fuzzing Windows continuously in Azure using the libfuzzer and the fuzzing tool built by Microsoft Research that we are releasing as Open Source at CPPCon. Developers who continuously create libfuzzer-based test binaries using sanitizers and coverage…
Tutorial: Learn To Sort A Text File On Windows With C++
February 15, 2021
In C++ Builder sorting text string lines is very easy by setting Sorted property of a StringList to true. This example below sorts a given text file and saves as sorted in same name.
void sort_textfile(UnicodeString filename)
{
auto str_list = new TStringList;
str_list->LoadFromFile(filename);
str_list->Sorted = true;
str_list->SaveToFile(filename);
…