Сообщение от Mr_F_
string itoa( int n )
{
char buff[32];
sprintf(buff,"%d",n);
return string( buff );
}
...
xText (10,20, (string("fps: ") + itoa(xGetFPS())).c_str() );
|
Нахрена этот бред, пардон?
char console[256];
sprintf_s(console, 256, "fps: %d", xGetFPS());
xText (10, 20, console);