Here are some C++ snippets I use often.
simple
STL string tokenizer
my
everyday's frame
to process textfiles using the tokenizer