You can use Code::Blocks with MinGW or VC++ which are the two most basic IDE environments I know of that are free. These are IDEs, not compilers. VC++ is an IDE with a compiler that just happens to be called Visual C++ compiler. Code::Blocks comes integrated with MinGW which is a compiler but Code::Blocks is an IDE that works with the compiler or in this case, MinGW.
After that, go here to help learn C++ basics: http://cplusplus.com/doc/tutorial/