SFML community forums

Help => Graphics => Topic started by: gmh_michael on February 15, 2012, 04:26:20 am

Title: [solved] [sfml 1.6] Displaying an INT with sf::String ?
Post by: gmh_michael 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?
Title: [solved] [sfml 1.6] Displaying an INT with sf::String ?
Post by: Laurent on February 15, 2012, 08:12:47 am
Convert int to string (-> Google) then give the string to your sf::String.
Title: [solved] [sfml 1.6] Displaying an INT with sf::String ?
Post by: gmh_michael 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/