赞
踩
- //一、针对Microsoft
-
- #include <stdlib.h>
-
-
- //(1)第一种方式
- system( "PAUSE ");
-
- //(2)第二种方式
- getchar();
-
- //(3)第三种方式
- Sleep();
-
-
-
- ///二、针对Linux
- (1)第一种方式
-
- getchar();
-
- /通用的一种方法是设置断点

- //方法1:
-
- using System.Threading;
-
- //程序下方加入
- Thread.Sleep(5000);//线程挂起,单位为毫秒
-
-
- //方法2:
-
- //程序下方加入
- Console.ReadLine();//或
- Console.Read();
-
- //方法3:
- 设置断点

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。