Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Happybobjr on November 24, 2014, 02:58:52 am

Title: Free C textbook.
Post by: Happybobjr on November 24, 2014, 02:58:52 am
Hey guys, my professor wrote his own textbook for C and I find it very good for beginning/intermediate C programmers.
Some chapters are lacking, but it does an extremely good job compared to other books I've seen.
https://drive.google.com/file/d/0B9EzLx4Z9geMWEZMdUNrZDhzck0


On Page 437, it talks about Huffman Compression, and i thought it was cool and applicable :)
Title: Re: Free C textbook.
Post by: chickendude on November 24, 2014, 03:19:46 am
The old Site du Zéro had a really nice C tutorial (in French). The name of the site has changed since then, something like OpenClass, but i think you can still download the book.

Thanks for the link, though, Happybobjr. All Google stuff's blocked here but maybe i can hop on a VPN sometime and pick it up.
Title: Re: Free C textbook.
Post by: harold on November 24, 2014, 03:34:46 am
I had a look and it makes the same mistake as almost everyone does when discussing Huffman decoding, it only mentions tree-walking.
Tree-walking is a great way to intuitively show that decoding is possible at all, but it's a bad way to actually do it, and actually the code for table-based decoding is shorted and simpler (once you understand the idea).
Can we send in suggestions?

nice book overall.
Title: Re: Free C textbook.
Post by: Happybobjr on November 24, 2014, 03:47:03 am
Ya! Feel free to send suggestions.
(we get half a point extra cred for corrections etc XD)

Remember this is class specific though, so a suggestion, rather than correction, may not be applicable.
Title: Re: Free C textbook.
Post by: Aspiring on November 24, 2014, 06:55:15 pm
I think I found a typo.  In 21.3, it is written: "The third argument is the name of a function." I think this should be something like "The third argument is the pointer to a function."
Title: Re: Free C textbook.
Post by: Juju on November 25, 2014, 09:49:34 am
I like the goals your teacher is trying to achieve here. You have to not only master C, but also master the right tools used to compile C. It's all about efficiency and everyone will like you for your efficient methods.