为什么 cout 在代码块上没有输出?

Why cout is producing no output on Code Blocks?

#include <iostream>
using namespace std;

int main(int argc, char** argv) {

    cout << "Whatever";

    return 0;
}

Cout 不起作用,printf 也不起作用,puts 也不起作用。另外,我检查了项目属性,调试和发布都设置为 "Console Application" 和 "Pause in the end"。没有意义。

编辑:此外,我之前尝试过使用 endl 刷新(无结果)。

我正在写我的评论作为回应: 您的图像显示选项“-mwindows”,它删除了控制台,如 http://www.mingw.org/wiki/FAQ(MinGW 常见问题解答)

中所述
How do I remove DOS command windows?
    In the link step add a "-mwindows" switch to the command line.