标签: c++ stringstream
int main() { int count=123; std::stringstream ss; ss<< "123_"<< count << "_" << ".log"; const char * filename=ss.str().c_str(); std::cout << filename << std::endl; return 0; }