用ofstream 输出流,
#include <fstream>
ofstream outf;
outf.open("abc.txt");
outf<<123<<endl;
outf.close();
转载于:https://www.cnblogs.com/xzh1993/p/7677304.html
用ofstream 输出流,
#include <fstream>
ofstream outf;
outf.open("abc.txt");
outf<<123<<endl;
outf.close();
转载于:https://www.cnblogs.com/xzh1993/p/7677304.html