crrrazydan
Programmer
I am making a game with OpenGL, and I have a function that prints the fps (frames per second) on the screen. But the problem is that that function only takes strings in the char *str form, and my fps value is an Int. I am a beginner to C++ (not to 3D though , I'm used to VB), so please explain any suggestions you give a little. Here is my code:
char *str;
int fps;
GetFps(fps);
//Something to convert int to *str here
PrintString(listBase, str);
And for future reference, how do I combine two strings in C++? Like str = str + str2
Thanks! -Dan K
char *str;
int fps;
GetFps(fps);
//Something to convert int to *str here
PrintString(listBase, str);
And for future reference, how do I combine two strings in C++? Like str = str + str2
Thanks! -Dan K