I'm assuming the one without MinGW is just Code::Blocks where you have to incorporate your own compiler. The one with MinGW is the on you want if you want to program in C++, unless you are incorporating another compiler of your own. I'm not overly advanced myself on this topic but I use the code::blocks with MinGW setup.exe.
As for the output (I am assuming you mean the binary files you are building)>>
There's probably nothing wrong with the programs you are writing except for one thing, you aren't pausing it at the end. I'm possibly totally off the mark here but I'll put my ten cents in anyway.
If this is what you mean, try this.
#include <cstdlib>
///at the end of main, where you want to view the output write in
system("pause>nul");
//You can write system("pause"); too but I prefer the first example because
//it doesn't display "press any key to continue" message at the end.