c清除输入缓冲
摘要:// 三种方法: fflush(stdin); // 不靠谱 setbuf(stdin, NULL); // gcc 可用 scanf("%*[^\n]%*c"); // %*表示丢弃这些字符
阅读全文
posted @ 2018-03-05 21:28
posted @ 2018-03-05 21:28
posted @ 2016-03-17 22:36
posted @ 2015-12-31 14:18
posted @ 2015-12-24 15:06
posted @ 2015-06-14 18:51
posted @ 2015-06-14 18:01