C语言资料输入/输出ACM改进版(freopen函数)(转)

C语言文件输入/输出ACM改进版(freopen函数)(转)#include stdio.h int main(){freopen(slyar.in, r,

C语言文件输入/输出ACM改进版(freopen函数)(转)

#include <stdio.h> int main(){freopen("slyar.in", "r", stdin);freopen("slyar.out", "w", stdout); /* 中间按原样写代码,什么都不用修改 */ fclose(stdin);fclose(stdout);return 0;}