天天看点

让C++控制台程序停下来,实现暂停功能

1、Windows

#include  <stdlib.h>

方法1

system( "pause ");

方法2

getchar();

方法3

Sleep();

2、Linux

继续阅读