1 #include <iostream>
 2 #include <fstream>  //ofstream类的头文件
 3 using namespace std;
 4 int main()
 5 {
 6     int n;
 7     cin>>n;
 8     ofstream mycout("temp.txt");
 9     mycout<<n<<endl;
10     mycout.close();
11     return 0;
12 }

 

相关文章: