A
AMP
Hello,
I posted this morning and recieved no responces., so I decided to
simplify my question.
How do I stop an exception from being thrown after the first run
through of the while clause:
private void InsertionSort_Function(uint[] IntCard,int length)
{
for (int j = 1; j <= (length-1); j++)
{
uint CurrentCard=IntCard[j];
int i =j-1;
{
while ((IntCard > CurrentCard) && (i > 1))
{
IntCard[i + 1] = IntCard;
i = i - 1;
}
}
IntCard[i+1]=CurrentCard;
}
}
}
Thanks
Mike
I posted this morning and recieved no responces., so I decided to
simplify my question.
How do I stop an exception from being thrown after the first run
through of the while clause:
private void InsertionSort_Function(uint[] IntCard,int length)
{
for (int j = 1; j <= (length-1); j++)
{
uint CurrentCard=IntCard[j];
int i =j-1;
{
while ((IntCard > CurrentCard) && (i > 1))
{
IntCard[i + 1] = IntCard;
i = i - 1;
}
}
IntCard[i+1]=CurrentCard;
}
}
}
Thanks
Mike