I'm writing a set of C and C++ little sample codes. I currently have more than 100 codes.
Each code is small and shows a specific functionnality.
Codes are about C, C++, library SDL, WinAPI, and lots of stuff.
Actually, it is all in French. (web page and comments of the codes).
But code is code, I think you can understand stuffs even if you don't speak French.
This looks like the makings of a teaching book. Now all you have to do is explain all the code in a way that makes sence to beginners. Then you are all set. Good luck!