C++写文件夹

写文件

#include <fstream>
using namespace std;
int main() {
  ofstream outFile;
  outFile.open("D:\\gaoyu.txt");
  outFile << "this is a c++ file write test.";
  outFile.close();
  return 0;
}

猜你喜欢

转载自www.cnblogs.com/mathyk/p/12752697.html