Windows根本不支持行缓冲;见the msdn page on setvbuf。 所以在Windows上,一个好的方法就是像这样完全关闭 stdout 缓冲: setvbuf (stdout, NULL, _IONBF, 0);.
確定! 回上一頁