Skip to main content
2 of 4
edited tags
Jules
  • 1.4k
  • 8
  • 19

How to i add a number to a string?

I want to do something like this (showing what FPS im running at in my SDL game):

SDL_WM_SetCaption("FPS: " + GetTicks(&fps)/1000.f, NULL); 

But Visual Studio intellisens complains that expression must have integral or enum type.

What have i done wrong?

Thanks in advance :D

Jason94
  • 13.6k
  • 38
  • 114
  • 191