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

Author Topic: I am tryin an array and i can not make it works ....  (Read 1817 times)

0 Members and 1 Guest are viewing this topic.

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
I am tryin an array and i can not make it works ....
« on: March 12, 2010, 06:39:43 pm »
sf::Text  sIDs[4];
sIDs[0]=L"Hello you..."; // it dont work.

Also ...

sf::Text  sIDs[]={L"hello", L"you"}; // dont work.

How i must make an array of Text?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
I am tryin an array and i can not make it works ....
« Reply #1 on: March 12, 2010, 07:56:43 pm »
Code: [Select]
sf::Text sIDs[4];
sIDs[0].SetString(L"Hello you");
...

or
Code: [Select]
sf::Text sIDs[] = {sf::Text(L"hello"), sf::Text(L"you"), ...};
Laurent Gomila - SFML developer

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
I am tryin an array and i can not make it works ....
« Reply #2 on: March 12, 2010, 09:40:49 pm »
Thank's
Jim