I have "converted" my prog to psedocode (I know, I should di it before writing source code" and everything is looking smoothly and easy to understand. The only problem I have is translating 2 lines involving array:

if (strcmp(full_name[index[inner]],full_name[index[inner+1]])>0)


temp = index[inner],index[inner]= index[inner+1],index[inner+1]=temp;

can anyone help me out? I want it to be self explanatory, so when I give this to my brother who knows nothing about programming, he could easily understand what is happening.

PS. inner, outer, invloves the indexed bubble sort.


if first string is longer than second string.



if that's good enough then I have been way more specific in the rest of the program:) Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.