I've Attached Two Projects (I use Code::Blocks In Windows, gvim In *nix to write code). The projects are in code::blocks format, but you only need the .cpp files. Both of these are commented basically line for line (if not, at least each code block is). I think it will be a great way to learn... by taking snippets from projects and putting them in your project. If you run across issues with making the code work in your project, let me know, and we can work on making it work tailored to your need.