虹棠工作室博客 – 一个啥都分享的个人博客网站! - NOI
文件读入写出[noi格式]freopen("a.in","r",stdin); freopen("a.out","w",stdout);文件读入写出其他用法freopen("a.a","r",stdin); freopen("a.b","w",stdout);freopen("a.v","r",stdin); freopen("a.d","w",stdout);freopen("a.num","r",stdin); freopen("a.test","w",stdout);
当怀疑某条输出语句已经运行，但未在屏幕上显示，可以用此语句fflush(stdout);