#include "stdafx.h"
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char* argv[])
{
string aa="RIOSDKJFKDSFJDSLA;PFGLJGFJGD000fff2hfu";
string bb="\n";
string cc=" 标题 ";
for (int i=30;i<aa.length();i=i+31)
{
aa.insert(i,bb,0,1);
}
cout<<aa<<endl;
string dd=cc+"\n"+aa;
ofstream file;
file.open("123.txt");
file<<dd;
file.close();
return 0;
}