#include<iostream>
写文件
ofstream
追加模式
ifstream
#include <fstream>
fstream output;
output.open("file.txt", ios::app);
output << state_.mprset_.size() << endl;
output.close();