完了完了,忘了freopen咋写了!!!

· · 个人记录

是这个吗

freopen("文件名.扩展名","r",stdin);
freopen("文件名.扩展名","w",stdout);

回答必关