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
#include
#include
#include
int _tmain(int argc, _TCHAR*…
Learn To Code Simple Linked List In Modern C++ On Windows
February 21, 2021
A Linked 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…
Bubble Sort Method 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 sort sometimes referred to as sinking sort.
You can use this bubble_sort() function…
Tutorial: Learn To Copy Matrix As A Excel Clipboard In Modern C++
February 17, 2021
Clipboard also called the paste 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 contents reside in the computer’s memory.
In C++ Builder there are good components to use Excel forms, excel supported Grid…
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;
…
ASCII Art: Fun Code Spinning Donut In 3D Text Form In C++
February 13, 2021
There is no word to say, we would like to share this Amazing 3D Spinning Donut by Andy Sloane . This full post explains what is mathematic behind this. Please visit his awesome post here. There is also another video of his codes by Professor Lex Fridman here. We just made…
Tutorial: Easily Learn To Draw Mandelbrot In C++ On Windows
February 9, 2021
In mathematics, Fractals are a self-similar subset of Euclidean space whose fractal dimensions strictly exceeds its topological dimension. So when you draw these functions in their topological height, fractals appear the same at different levels, as illustrated in successive magnifications of the Mandelbrot set. Mandelbrot set is a good example to see how fractals are changing in every x,y and…
Tutorial: Learn To Print Mandelbrot In Text Form In C++
February 7, 2021
In mathematics, fractals are a self-similar subset of Euclidean space whose fractal dimensions strictly exceeds its topological dimension. So when you draw these functions in their topological height, fractals appear the same at different levels, as illustrated in…
C++ Builder is easy to operate on files on Windows. There are many methods to operate on files. Some of these methods are explained well in Windows File Operations in Modern C++. In this post we create a snippet to search and count a text from a text file.
unsigned int…
Learn To Use Powerful Lambda Expressions In C++ On Windows
February 5, 2021
Lambda Expressions are an expression that returns a function object, it comes with C++11 standards and used C++14, C++17, C++20 standards, it is well explained here. Lambda expressions are widely used in C++, C#, Groovy, Java, Python, Ruby languages too.
The Greek letter Lambda (λ) refers to an anonymous function, it means chosen since it is equated with something nameless and expression…

