freopen命令中的路径C

Path in freopen command C++

本文关键字:路径 命令 freopen      更新时间:2023-10-16

嘿,我需要更改freopen comand中的路径。

freopen("out.txt","w", stdout);

我想代替使用stdout,例如我的路径,例如d:驱动器。当我的程序不起作用时,icant更改freopen(我认为)到其他命令。

,所以将其更改为

 freopen("D:out.txt","w", stdout);

作品