If you use a moderately recent build of Code::Blocks (not RC2) then compiling single files is certainly fully supported.
There is also a help plugin available (contrib folder) to do just what you asked for. It is distributed with all builds, too.
In addition, you can search Google or MSDN from within the IDE by doing a right-click while holding down Ctrl (base functionality).