#include <fstream> ofstream out("out1.txt"); out << "session_id=" << 参数 << “\n”; 转载于:https://my.oschina.net/u/1176909/blog/533016