摘要:
#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 阅读全文