2011年4月22日
摘要: freopen以前经常使用,比较方便,可以当作模板,在中间替换为自己的代码即可使用。#include <stdio.h> // 实际使用中发现freopen也包含在iostream.h中,C++代码#include <iostream.h>即可。 int main(){ freopen("sample.in", "r", stdin); freopen("sample.out", "w", stdout); /* 同控制台输入输出 */ fclose(stdin); fclose(stdou 阅读全文
posted @ 2011-04-22 00:34 浩然119 阅读(21159) 评论(0) 推荐(0)