123789456ye

已AFO

批量生成数据

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ofstream File;
	for (int i = 0; i < 100; i++)
	{
		string tmp = "";
		tmp = to_string((i));
		File.open("file_" + tmp + ".txt");
		File << "abc" << endl;
		File.close();
	}
	return 0;
}
posted @ 2019-08-13 09:39  123789456ye  阅读(116)  评论(0编辑  收藏  举报