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 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…
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…
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 contents reside in the computer’s memory.
InC++ Builderthere are good components to use Excel forms, excel…
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
Inmathematics, Fractalsare a self-similar subset ofEuclidean 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…
Tutorial: Learn To Print Mandelbrot In Text Form In C++
February 7, 2021
Inmathematics, fractalsare a self-similar subset ofEuclidean 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…
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 Expressionsare 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 explainedhere. 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…