zl程序教程

您现在的位置是:首页 >  后端

当前栏目

c++ 文件写样例

2023-09-14 09:10:08 时间
#include <iostream>
#include <sstream>
#include <fstream>>

using namespace std;

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
 ofstream myfile;
 myfile.open("example.txt");	
 myfile <<"write test";
 myfile.close();
	return 0;
}