摘要: #include<fstream> #include<iostream> #include<string> using namespace std; void main() { char ch; char c[10]; ifstream in("zsm.txt"); ofstream out("lala.txt"); for(string str;getline(in,str);) { out<<str<<endl; strcpy(c,str.c_str()); //c_str()是string 阅读全文
posted @ 2013-05-15 22:50 herizai 阅读(208) 评论(0) 推荐(0) 编辑