Hi everyone, i'm new at using c++ and sfml.
I need to display the cursor position in the title bar next to the title.
I tried this :
sf::Vector2i position = sf::Mouse::getPosition(window);
sf::String title ;
title += position.x;
title += position.y;
sf::Window::setTitle(title);
My problem is that position.x and position.y give a int and i need to put them in a sf::String.
Can someone help me fix this.
Do you know another way to do it ?