0 Members and 2 Guests are viewing this topic.
namespace Converter{ template <typename T> std::string ToString(const T& i) { std::ostringstream stream; stream << i; return stream.str(); } template <typename T> T FromString(const std::string& str) { std::istringstream stream(str); T tmp; stream >> tmp; return tmp; }}
I suggest you to read the tuto:http://www.sfml-dev.org/tutorials/1.6/graphics-fonts-fr.php