C++C++11C++14C++17Introduction to C++Learn C++

Learn About Function Declaration and Definition in C++

In C and C++ programming language there are two parts of a function, Declaration, and Definition. Function Declarationis the combination of the return type of function, function’s name, and parameters in parenthesis.Function Definitionis the body of the function includes statements and other functions. In general use, they are defined together as below, myfunction() // this…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn to Use While and Do-While Loops in C++

While loops allow you to repeat a block of code as long as your specified condition is reached. Loops are used very offend in programming because they save time, reduce errors, and they make code more readable. 1. The While Loop In the mechanism of the while statement, the condition is evaluated and if it returns true then the code block inside the while loop will be executed, this will…
Read more
C++C++11C++14C++17Language FeatureLearn C++

Learn To Create Alpha Color Bitmap From A Bitmap By A Given Color In Modern C++

Photoshop, GIMP and other professional Photo Editors are capable to convert one color to a alpha color. You choose a color and all same colors of pixels are goes to alpha color which is transparent. These kind of images are good to blend in front o another background of images. You can also add glamorous effects, like gloom, shadows etc. on those images. In this post we will present to how…
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