http://stackoverflow.com/questions/8099445/eclipse-cdt-running-c-program-not-showing-anything-in-the-console-why
That is, you need to add the environment variable PATH to "C:\MinGW\bin" :D