here is the C++ sample
int a[1000] = {3,1,5,4} int b[1000] = {7,9,11,3}
how do i make it so if i sort array a, array b also following array a>
Instead of using two arrays, can you use an array of pairs and then sort THAT using a special comparison functor rather than the default less-than operator?
pair