小编cij*_*nzy的帖子

使用freopen后如何在stdout中写入

之后freopen-ing stdout,我怎样才能打印终端?

freopen("out", "w", stdout); // reopen stdout
/* something */
printf("Now I want to print this on terminal");
Run Code Online (Sandbox Code Playgroud)

c c++ freopen

2
推荐指数
1
解决办法
1215
查看次数

标签 统计

c ×1

c++ ×1

freopen ×1