3 回答


Plan_C
TA贡献5条经验 获得超18个赞
Windows: freopen( "CON", "w", stdout );
Linux: freopen( "/dev/tty", "w", stdout );

心有猛虎_细嗅蔷薇
TA贡献119条经验 获得超250个赞
使用freopen()函数以写入方式w(write)打开输出文件shuchu.txt
因为freopen()函数重定向了标准流,使用fclose关闭输出文件,屏幕上不在等待输入数据和不再显示输出结果。
- 3 回答
- 0 关注
- 1601 浏览
添加回答
举报
0/150
提交
取消