Tag: freopen

如何在使用freopen后写入stdout

在freopen ing stdout ,如何在终端上打印? freopen(“out”, “w”, stdout); // reopen stdout /* something */ printf(“Now I want to print this on terminal”);