C++ComponentsDatabaseLanguage FeatureLearn C++

Learn To Use MySQL Database Connections On Windows With MyDAC Components

In this post we would like to give a very simple example to connect to a MySQL database in C++ Builder with MyDAC Component.MySQL is one of the world’s most popular open source database and it is very easy and very useful touse small to large scale databases. MySQL has MySQL Service and different editions ( Enterprise, Standard, Classic, Cluster CGE and Embedded versions). MySQL…
Read more
C++C++11C++14C++17Learn C++

Quickly Learn To Use Quick Sort Algorithm In C++ On Windows

Quick Sort (QuickSort) Algorithm, also called as partition exchange sort, is a very fast sorting algorithm that developed by British computer scientist Tony Hoare in 1959. It gets a pivot element as pivot and partitions the given array around this element. QuickSort method can be summirized as Divide and Conquer Algorithm. There are many versions of QuickSort that pick elements in different…
Read more
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