Juillet
Dec 6th, 1999, 07:50 PM
I have an array of 7 values
1,4,4,5,8,8,8
I want to sort and use a bubble sort.
No problem
What I would like to know is how to increment any value that is equal to the one prior to it by 1.
When I incremnt the 3rd index(4) it becomes 5 and then the fourth index mathes the 3rd so it gets incremented and so on.
I would like to end up with
1,4,5,6,8,9,10
Thanks
1,4,4,5,8,8,8
I want to sort and use a bubble sort.
No problem
What I would like to know is how to increment any value that is equal to the one prior to it by 1.
When I incremnt the 3rd index(4) it becomes 5 and then the fourth index mathes the 3rd so it gets incremented and so on.
I would like to end up with
1,4,5,6,8,9,10
Thanks