I'm used to programming in C but now I needed to use C++ for a project, and I need to save some text into a string, the code I would have used in C would have been
sprintf(pathFotosLimpias, "CleanPictures/Picture_T%d_%d", pictureNumber, templateNumber);
Or something like that, but pathFotosLimpias is a string so it doesn't work and I can't find how to save it as a sting, I think there is a boost function which does something similar to what I need but I can't figure out what exactly should I do, can someone explain what I need and maybe give me an example on how to use it?
Thank you.
Update: It is apparently a cv::String from opencv, I'm a bit more confused now. Nevermind, that was an error.