C++ program to implement Selection sort using class

Tuesday, February 1st, 2011  »  Posted By  »  Total 1 Comment

#include <iostream.h> const int MAX = 10 ; class array { private : int arr[MAX] ; int count ; public : array( ) ; void add ( int item ) ; void sort( ) ; void display( ) ; } ; array :: array( ) { count = 0 ; for ( int i = [...]

Sorting of numbers

Tuesday, November 4th, 2008  »  Posted By  »  Total 1 Comment

Sorting means arranging a set of data in some order. There are different methods that are used to sort the data in ascending order. Some of theĀ  methods are Selection sort Bubble sort Insertion sort 1. Selection sort Here, to sort the data in ascending order, the 0th element is compared with all other elements. [...]

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup