If you want to close the file before the end of a function you can always use a nested scope. In the standard (27.8.1.5 Class template basic_ifstream), ifstream ...
確定! 回上一頁