5
freopen 重定向至文件后恢复至终端
source link: https://iecho.cc/2018/05/28/freopen-%E9%87%8D%E5%AE%9A%E5%90%91%E8%87%B3%E6%96%87%E4%BB%B6%E5%90%8E%E6%81%A2%E5%A4%8D%E8%87%B3%E7%BB%88%E7%AB%AF/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
freopen 重定向至文件后恢复至终端
2018-05-28 13:36:30
操作系统 | 标准输入输出设备 |
---|---|
Windows | CON |
Linux | /dev/tty |
Windows
freopen("CON", "r", stdin);
freopen("CON", "w", stdout);
Linux
freopen("/dev/tty", "r", stdin);
freopen("/dev/tty", "w", stdout);
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK