用codeblocks运行helloworld一闪即逝

在codeblocks中运行一个程序,运行正常之后弹出一个窗口,但是一闪即逝。

很简单,只需要在return前面加上system("pause");就行

你可能感兴趣的:(System)