[SlugLUG] Question on C
cerise at armory.com
cerise at armory.com
Tue Oct 10 11:39:43 PDT 2006
This question leads me to believe that you do not own the only C programming
book that anyone should ever buy: Kernighan and Ritchie's "The C Programming
Language".
The book is written by the guys who invented the language. In its first
edition it was somewhere in the neighborhood of 200 pages. Ritchie said
something like "C isn't a large language and wouldn't be served well by a
large text".
And, of course, since the book details the invention of C along with the
development of UNIX, you get some insights there into the deal 8)
Anyway, somewhere in there, they implement a hash table in C 8)
-Phil/CERisE
On Tue, Oct 10, 2006 at 01:55:18AM -0700, Erich Blume wrote:
> Problem is, while doing that, I completely forgot how to write C. I've
> re-trained myself up to the basics, but what I really want to do now is
> write a hash table implementation in C. I can't for the life of me figure
> out how to get started, though. I've written a few half-hearted structs,
> slapped down some frivolous typedefs, and even put in a few useless
> prototypes.
>
> So my question is: where can I get started for this particular project? Who
> knows of a good resource for easy to understand implementations of hash
> tables in C? If it's a book, that's fine, but it'd be better if you could
> point me to a web page or something.
>
> Also, something that's been bugging me is whether or not I should learn C++.
> Ever since I learned perl, I've been reluctant to learn C++, being as more
> or less the only time I ever plan on writing compiled code now will be to
> optimize. I'd rather optimize in C than C++. But I've been doing a lot of
> reading and it sounds like maybe that wasn't such a good appraisal. From the
> context of a computational biologist, what's the safer bet?
>
> Thanks,
> Erich
>
>
> _______________________________________________
> Sluglug mailing list
> Sluglug at sluglug.ucsc.edu
> http://sluglug.ucsc.edu/cgi-bin/mailman/listinfo/sluglug
More information about the Sluglug
mailing list