prolly very stupid question

Started by
2 comments, last by Marty666 20 years, 3 months ago
hi all, i calculated my framerate. The problem is it''s an int, or float, or whatever i want, just not *char[]. Which is what my font output wants. Is there a simple way to convert it? Thanx, Marty
_____ /____ /|| | || MtY | ||_____|/Marty
Advertisement
look for info on itoa atoi and sprintf
[size="1"]
ty!
_____ /____ /|| | || MtY | ||_____|/Marty
I love sprintf()

char szText[80];sprintf(szText, "Current frame rate: %.1f", fps);DrawText(szText);etc.. 

This topic is closed to new replies.

Advertisement