如题,while((c=getchar())!=‘\n’);也不能满足要求,该如何实现?
就是想等到Sleep(3000);函数结束后才接纳用户输入的一切字符,有什么方法吗?
http://m.blog.sina.com.cn/s/blog_4c3146df0100wr8h.html?sudaref=www.baidu.com#page=8
setbuf(stdin, NULL);试试
有没有memset方法啊
http://www.cnblogs.com/codingmylife/archive/2010/04/18/1714954.html
用 flushall()试试
setbuf(stdout,null);
试一下这个函数setbuf();