Sunday, October 31, 2010

sorting

I typed out one of the programs I don't understand and got it to compile. It runs and takes input and gives output, but not what I expected. I think it's a program to sort lines of text by length, but it does it in such an obtuse way, and it doesn't work. It rearranges the lines I feed it, but not in any particular order.

I think I'll break it down here function-by-function to figure out how it works and possibly even fix what's broken.

No comments:

Post a Comment