我喜欢用system("pause");
因为如果缓冲区里面有字符的话,用getchar()也是一闪而过。不过也可以写个函数:
[CODE]void pause(){
printf("get any key to continue...\n");
while(getchar()!='\n');
}[/CODE]
+
#include<conio>
+
2楼
2007-11-17 19:18

2007-11-17 22:42