Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Set.Text Question  (Read 1237 times)

0 Members and 1 Guest are viewing this topic.

BusinessSloth

  • Newbie
  • *
  • Posts: 5
    • View Profile
Set.Text Question
« on: February 22, 2012, 06:03:29 am »
I was wondering if with
Code: [Select]
Hello.SetText("Your answer is"); you could put a variable in with it, like with cout
Code: [Select]
cout << "your answer is" << answer << endl;


Thanks

youri801

  • Newbie
  • *
  • Posts: 4
    • View Profile
Set.Text Question
« Reply #1 on: February 22, 2012, 08:22:56 am »
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.

BusinessSloth

  • Newbie
  • *
  • Posts: 5
    • View Profile
Set.Text Question
« Reply #2 on: February 22, 2012, 08:42:23 am »
Ahh, I'll be sure to do that next time. Thank you, I appreciate your help.