c++ - Xcode writes C language code, how to use freopen() to return the output to the console?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-06-23 09:14:56
0
1
1014

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.

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(1)
某草草

Try after fclose.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template