Here are some books that helped me tremendously. Maybe you can avoid some headaches by checking them out too!
-
Programming
Pearls
contains many examples of algorithms in C, and it illuminates some key gotchas.
-
-
C
& C++ Code Capsules
Don't let the C in this title and the next one scare you. Both these
authors
feel not enough programmers know C well enough for C++. When I switched over to C++, I did so before I knew
all
the useful aspects of C. I'm glad I took a step back and reviewed the essentials.
-