Getting original indices of strings after sorting a char*name
Posted on 2003-11-26
const char* name[max];
i have some strings in name like some names.
i use some sort technique to sort strings in name.after sorting if i need to know the original position of the strings before sorting, how can i do it.
sorted name = abc,ccb,dba,mba;
previously mba was at position 3 bur after sorting at 4. so how to get the original positions of the strings.
Thanks and regards