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

Quickly Learn To Sort Vectors With Parallel STL Algorithm In C++ On Windows

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…
Read more
C++C++11C++14C++17Learn C++

Tutorial: Learn To Sort Numbers With Bubble Sort Method In C++ On Windows

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 thisbubble_sort()function to sort an integer array in its range as given below. void bubble_sort(int A[], int n) { for ( int…
Read more
C++C++11C++14C++17Language FeatureLearn C++

ASCII Art: Fun Code Spinning Donut In 3D Text Form In C++

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 few changes on codes for the C++ Builder Console VCL Application, it runs well as in original. void rotate_donut_3D(void) {…
Read more
C++C++11C++14C++17Learn C++

Tutorial: Learn To Print Mandelbrot In Text Form In C++

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…
Read more