SFML community forums
Help => Graphics => Topic started by: BusinessSloth on February 22, 2012, 06:03:29 am
-
I was wondering if with
Hello.SetText("Your answer is");
you could put a variable in with it, like with cout cout << "your answer is" << answer << endl;
Thanks
-
Try using the forum search feature before posting, your question has already been asked in a couple of threads.
I suggest you to read this thread.
http://www.sfml-dev.org/forum/viewtopic.php?t=5154&postdays=0&postorder=asc&start=0
As you will see you can simply use an std::ostringstream to achieve what you want.
-
Ahh, I'll be sure to do that next time. Thank you, I appreciate your help.