Wednesday, April 27, 2011

Qsort Part 2



This took me about an hour to bang out - and that's WITH heavily referencing some similar programs I found in various tutorials (that were varying degrees of helpful).

Making QSort properly sort an array of strings requires a wide range of familiarity of C's tools (pointer voodoo, how strings and arrays behave, function pointers, casting) but to a greater degree it requires understanding what you're really saying when you tell a function what to expect.

I don't have time to go into it but I have a few pages of notes I'll transcribe tomorrow. This was a fantastic exercise.

No comments:

Post a Comment