C++ 文件保存
文件保存:
#include <sstream>
#include <fstream>
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

浙公网安备 33010602011771号