标签:get code color blog getchar log eof 刷新 缓冲区
int c; while((c = getchar()) != ‘\n‘ && c != EOF);
c刷新缓冲区
原文地址:http://www.cnblogs.com/xiaopipi/p/6728805.html