Hello all, I know there are tons of quickSort algorithm out there already, however, I tried couple of them, none of them gave me the correct result and I couldn't figure out where the bug is. =[
The function is for sorting name strings, I used strcmp for that.
Is that because I can't swap inside vector? Or something else?
Tou do know that std::string already has comparsion operator, right?
1) Your function contains a leak. dst and src are not freed after creation.
2) Values of dst and src arrays are ininitialized, so for all purposes essentually random.