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 }
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 }
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。