Here is a tutorial how to install GCC compiler in Windows.
You can run and compile programs directly from command prompt .
When you download Codeblocks and install it ,the gcc compiler automatically is configured with codeblocks.
NOTE:GCC and G++ are same and comes with Codeblocks.
GCC is used for compiling C programs.
G++ is used for compiling C++ programs.