freopen
来源:互联网 发布:龙渊网络官网app 编辑:程序博客网 时间:2024/06/09 16:54
#include<stdio.h>
int main()
{
freopen
(
"in.txt"
,
"r"
,stdin);
/*如果in.txt不在连接后的exe的目录,需要指定路径如D:\\in.txt*/
freopen
(
"out.txt"
,
"w"
,stdout);
/*同上*/
inta,b;
while
(
scanf
(
"%d%d"
,&a,&b)!=EOF)
printf
(
"%d\n"
,a+b);
fclose
(stdin);
fclose
(stdout);
return0;
}
freopen("E:\\Context_aware\\sotongTest\\sotongTest\\Debug\\sample_input.txt", "r", stdin);
0 0 0 0 0 0 0 0 0
1 0 2 0 1 0 1 0 0
0 2 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0
0 0 0 0 1 0 2 0 0
0 0 0 0 0 0 0 0 0
0 0 2 1 0 0 1 0 0
0 0 1 2 2 0 2 0 0
0 0 0 0 0 0 0 0 0
0 0
- freopen
- freopen
- freopen
- freopen()
- freopen
- freopen()
- freopen
- freopen
- freopen
- freopen
- freopen
- freopen
- freopen
- freopen
- freopen
- freopen ()
- freopen
- freopen()
- python十个项目之----即时标记
- OC导入类#import与@class的区别
- 数据库用户管理
- 断号查询
- 在EC2上创建root用户,并使用root用户登录
- freopen
- struts2 属性读取函数 规范
- VS2010常见的环境变量
- 关于webview如何自动登录保存登录信息
- 1万亿元下的蓝海:物联网三大业务解析
- SQL SERVER重置自动编号列(标识列)
- makefile教程(2)
- ubuntu读写文件权限
- Linux网络编程之高级并发服务器