文件保存:
#include#include using namespace std; /*save to path ./record/ */static void save_to_file(string file, string str) { ofstream outfile; outfile.open("record/" + file, ios::binary | ios::app | ios::in | ios::out); outfile << str; outfile.close();}
string组合:
ostringstream oss;
end