C++中Stream-based I/O
都是RAII
机制的,文件流可以不手动close
。
Do I need to manually close an ifstream?
https://en.cppreference.com/w/cpp/io
C++中Stream-based I/O
都是RAII
机制的,文件流可以不手动close
。
Do I need to manually close an ifstream?
https://en.cppreference.com/w/cpp/io