C++文本读入输出

#include
using namespace std ;
#include
int main(){
ifstream infile;
infile.open(“1.txt”);
int n;
infile>>n;
cout<< n;

 ofstream outfile;
 outfile.open("2.txt");
 outfile<<n;
 outfile.close();

}

猜你喜欢

转载自blog.csdn.net/jzlStudent/article/details/103299524