Excuse me, after I have defined stdout in a file, I want to return to the Xocde console and output the second hello in the console again. What syntax can I use to come back?
freopen("/dev/tty/", "a", stdout);Already tried but no response.
I have searched many places before, and I really don’t know how to solve it. This is my first time asking. Thank you very much, gentlemen.
Try after fclose.