I'm 28 (oops, 29 now) and I want to be C literate by the time I'm 30. That's two (one) years to become competent at something I've been wanting to do nearly my whole life. No pressure.
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.
Labels:
C
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment