Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 C++ fstream 对象刷新数据后,检查是否发生致命错误的正确方法是什么?
作为 ios 的衍生产品,fstream 提供了一种检查 i/o 操作错误的方法。您可以rdstate或者您可以在流上检查良好以查找错误。