Skip to main content
3 of 4
deleted 24 characters in body
genpfault
  • 52.3k
  • 12
  • 93
  • 153

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?

Jason94
  • 13.6k
  • 38
  • 114
  • 191