This program implements the selection sort in C++ programming language. Here is the source code of the C++ program which takes the values of array as input and returns the sorted array as output. This C++ program is successfully compiled and run on DevCpp, a C++ compiler. The program output is also shown below. What […]

## Shell Sort Implementation in C++

How to implement Shell Sort in C++? It is an in-place comparison sort and one of the oldest sorting algorithm. Shell sort is a generalization of insertion sort that allows the exchange of items that are far apart. It is not stable sort. It takes O(1) extra space. The worst case time complexity of shell […]

## Heap Sort Implementation in C++

Heap Sort: Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the maximum element and place the maximum element at the end. We repeat the same process for remaining element. Binary Heap: Let us first define a Complete Binary Tree. […]

## Implementation of Insertion Sort in C++

What is Insertion Sort: Insertion Sort is really simple, just take the number, compare it with all the elements on its left and place it at its proper place. For example in case of playing cards you pick the card and compare it with all the sorted cards and place it at its exact place. […]

## Console Shooting Game C++

Very simple game executed successfully on DEV-C++ 5.6.3 It has 11 levels you can try, every level the speed and the amount of “birds” is increasing.The controls are arrow keys for moving and 1 / 2 for shooting. Best Console Shooting Game C++ CODE: #include <iostream> #include <conio.h> #include <windows.h> #include <ctime> #include <vector> class game […]

## Best C++ Open Source Libraries to work upon

I often read that one of the best ways to continue learning how to program is to study great opensource projects. Many people ask about some good quality open source libraries where they can learn about the language in a quality way. So here i recommend some high quality C++ open source libraries which can […]

- « Previous Page
- 1
- …
- 42
- 43
- 44
- 45
- 46
- …
- 50
- Next Page »