2012年11月22日
摘要: freopen 功 能: 替换一个流,或者说重新分配文件指针,实现重定向。eg: freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);/* close the standard output stream */ fclose(stdout);若要返回到显示默认的 stdout,使用下面的调用: freopen( "CON", "w", stdout ); //输出到控制台"CON" freo 阅读全文
posted @ 2012-11-22 00:04 MicZ 阅读(108) 评论(0) 推荐(0)