Your mistake is in while loop
Use this code
static public void sort( int []a, int n)
{
//sorts the input array a using the Insertion sort algorithm
int j;
int t;
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: post98 Search: Search took 0.03 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |