RT,我用了这样一个 freopen,结果后面输出 \n 的时候会变成乱码,system("cls") 这种也失效了。
\n
system("cls")
freopen("CON","r",stdin); FILE *fp=freopen("data.txt","w",stdout); fflush(fp); printf("%d\n",t); freopen("CON","w",stdout);
求大佬指导怎么修改。(我用的是 printf 输出)
printf