|
-
Dec 6th, 1999, 08:50 PM
#1
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|