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++17Code SnippetLanguage FeatureLearn C++

Quickly Learn To Search And Count Words From A Text File In Modern C++

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 count_text(UnicodeString text, UnicodeString filename) { if(FileExists(filename)) { UnicodeString us; unsigned int…
Read more
C++C++11C++14C++17Generic ProgrammingLearn C++

Learn To Easily Develop A Fun Fibonacci Number Generator In C++ For Windows

Fibonacci Numbers are sequence numbers called the Fibonacci sequence, and in mathematics, it starts with 0 and 1, and then each number is the sum of the two preceding ones. Fibonacci numbers are strongly related to Golden Ratio. In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of two quantities. There is Binet’s…
Read more