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

Author Topic: [solved] [sfml 1.6] Displaying an INT with sf::String ?  (Read 1558 times)

0 Members and 1 Guest are viewing this topic.

gmh_michael

  • Newbie
  • *
  • Posts: 2
    • View Profile
[solved] [sfml 1.6] Displaying an INT with sf::String ?
« on: February 15, 2012, 04:26:20 am »
i've been looking for way to render the player's score to the screen but i havent found a way to do it. any suggestions?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[solved] [sfml 1.6] Displaying an INT with sf::String ?
« Reply #1 on: February 15, 2012, 08:12:47 am »
Convert int to string (-> Google) then give the string to your sf::String.
Laurent Gomila - SFML developer

gmh_michael

  • Newbie
  • *
  • Posts: 2
    • View Profile
[solved] [sfml 1.6] Displaying an INT with sf::String ?
« Reply #2 on: February 16, 2012, 02:13:11 am »
Quote from: "Laurent"
Convert int to string (-> Google) then give the string to your sf::String.


thanks, found a tutorial here on how to do that:

https://notfaq.wordpress.com/2006/08/30/c-convert-int-to-string/

 

anything