Electrofriends

Insertion sort in C program

by Ranjith | December 4th, 2008.
Insertion sort in C program

Here is the program to sort the given integer in ascending order using insertion sort method. Please find the link to the pictorial tutor of the sorting. This program needs to enter the length of the entering array, followed by the array to be sorted. The entered integers are stored in the array A.
Logic : [...]

Read More..

Mouse programming in C

by Ranjith | November 20th, 2008.

Mouse can be used in text mode as well as in graphics mode. Usually it is used in graphics mode. Hence we must first change over to graphics mode. In our program the function initgraph() is responsible for switching the mode from text to graphics .DETECT is a macro defined in ‘graphics.h’. It requests initgraph() [...]

Read More..

Turbo C graphics programming

by Ranjith | November 20th, 2008.
Turbo C graphics programming

To start with graphics programming, Turbo C is a good choice. Even though DOS has its own limitations,  it is having a large number of  useful functions and is easy to program. To implement graphics algorithms,  To give graphical display of statistics, To view signals from any source, we can use C graphics. Here  is  [...]

Read More..

Sorting of numbers

by Ranjith | November 4th, 2008.

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. If it [...]

Read More..
Copyright©2009 www.electrofriends.com All Rights Reserved. Powered by Dhyeya