It doesn't truncate automatically - it's just that the file output pointer is at the start of the file. Try this: C++. Copy Code. fstream ...
確定! 回上一頁