Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: String, Variables & Values  (Read 2534 times)

0 Members and 1 Guest are viewing this topic.

Auron

  • Newbie
  • *
  • Posts: 15
    • MSN Messenger - videogamefreak101@hotmail.com
    • View Profile
String, Variables & Values
« on: August 08, 2009, 11:04:05 pm »
Hello,

How would I display the value of a variable in a string?

IE.

int Health = 100;

How would I use a string to display "100" in the string have it shown on the window?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
String, Variables & Values
« Reply #1 on: August 09, 2009, 12:41:14 am »
Google --> "C++ convert int to string"
Laurent Gomila - SFML developer

Auron

  • Newbie
  • *
  • Posts: 15
    • MSN Messenger - videogamefreak101@hotmail.com
    • View Profile
String, Variables & Values
« Reply #2 on: August 09, 2009, 01:54:28 am »
Thanks, found a lot of other useful info as well.