std::cin.rdbuf(is.rdbuf()); std::cout.rdbuf(os.rdbuf()); f(); std::cin.rdbuf(cinrdbuf); std::cout.rdbuf(coutrdbuf); } The redirect_output() function takes ...
確定! 回上一頁