关于关闭同步流

学术版

mayike @ 2024-11-01 19:38:19

freopen(".in","r",stdin);
freopen(".out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);

在今年的 noi linux 下能过编译吗?


by FanMingxuan @ 2024-11-01 19:39:20

怎么不能


by mayike @ 2024-11-01 20:07:12

求助大蛇! @729hao


by mayike @ 2024-11-01 20:43:34

求助大蛇! @Ooj_bai @xiangqizhen2011


by Ooj_bai @ 2024-11-01 20:46:53

@mayike 可以,就是加了最好不写fclose


by cyc120209 @ 2024-11-01 21:24:26

@mayike 可以,但是不能用fclose


by mayike @ 2024-11-01 21:26:08

@FanMingxuan @Ooj_bai @cyc120209 thx.


by FBW2010 @ 2024-11-02 09:42:34

@mayike bot


by mayike @ 2024-11-02 09:45:28

@FBW2010 请自s,谢谢


|