Shirlies
宁静专注认真的程序媛~
摘要: 留给自己看看,我的博客,我的成长……#include "fstream"//#define fin cin//#define fout cout using namespace std;//改成标准输入输出时可以注释掉下面两行,将上面注释的两行注释符号侧掉 ifstream fin("data.in");ofstream fout("data.out");int main(){int a,b;while(fin>>a>>b)fout<<a+b<<endl;return 0;}还要注意头文 阅读全文
posted @ 2012-01-04 21:26 Shirlies 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 留给自己看看的,这个博客就是记录自己的心得与所收获的地方。//#define LOCAL#include "stdio.h"#define INF 1000000000int main(){ //以下是重定向版,用来比较方便//如果用红色部分,所有蓝色部分就不要用了//#ifdef LOCAL//freopen("1.in","r",stdin);// freopen("1.out","w",stdout);//#endif//以下是fopen版,有点麻烦,如果要改成读写标准输入输出,要将fin 阅读全文
posted @ 2012-01-04 20:32 Shirlies 阅读(575) 评论(0) 推荐(0) 编辑