I'm kinda in need for your help on this one.
The situation is the following:
I have two different arrays. I want to sort one of them, but I need the other one to sort exactly the same way as the first one.
Example: If on my first array the new position number 1 is the old position number 50, I want the same to happen with another array.
I could use a struct to do this, but this is not very efficient for what I want. It's not efficient because I need one of the arrays in the beggining of the code, and it will allocate memory. But, I only need the other array later on the code, so it won't make sense to allocate space for it if I'm only going to need it later.
Hope you got what I need.
Thanks for your help.
This post has been edited by teopp: 18 April 2011 - 11:48 AM

New Topic/Question
Reply




MultiQuote





|