int转string-c++/c

int face_index = 1;

std::stringstream out;
out << face_index;
string save_pth = img_path.substr(0, img_path.find_last_of('.')) + "_face_index_"+ out.str()+".jpg";

  

原文地址:https://www.cnblogs.com/wjjcjj/p/13890959.html