3001
Graphics / Re: Int to string
« on: August 28, 2014, 04:36:45 am »
uses namespaces
then...
Best suggestion is to remove the "using namespace" lines. It'll still work fine since you're correctly fully qualifying everything already.
using namespace sf;
using namespace std;
then...
sf::RenderWindow window(sf::VideoMode(400, 200), "SFML text test");sf::Font font;sf::Text Ttext;std::string score, score2;std::srand(static_cast<unsigned int>(std::time(NULL)));Ttext.setColor(sf::Color::Black);Pscore = std::rand() % 6;sf::Event event;
Best suggestion is to remove the "using namespace" lines. It'll still work fine since you're correctly fully qualifying everything already.