is there a better / faster way to create string (std or (const) char *) created from string (const char *) and number (int), like
animation0, animation1, animation2 ... animation99
than this?
NOTE : doesnt have to use std, because hasValueForKey accepts const char *
std::stringstream strIter("animation0");
int i = 0;
while (hasValueForKey(strIter.str().c_str())) {
// do some stuff
++i;
strIter.str(std::string());
strIter << "animation" << i;
}
thanks