Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1063335
  • 博文数量: 284
  • 博客积分: 8223
  • 博客等级: 中将
  • 技术积分: 3188
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-01 13:26
文章分类

全部博文(284)

文章存档

2012年(18)

2011年(33)

2010年(83)

2009年(147)

2008年(3)

分类: C/C++

2009-07-28 14:25:49

#include
#include
using namespace std;
int main(int argc, char **argv[])
{
   ifstream input;
   ofstream output;
   string tt;
   input.open("11");
   output.open("22", ofstream::app);
   output << "==========\n";
   if(!input) exit(0);
   while(getline(input, tt, '\n')){
     output << tt << "\n";
   }
}
阅读(1222) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~