SFML community forums

Help => Graphics => Topic started by: dkaip on March 12, 2010, 06:39:43 pm

Title: I am tryin an array and i can not make it works ....
Post by: dkaip 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?
Title: I am tryin an array and i can not make it works ....
Post by: Laurent 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"), ...};
Title: I am tryin an array and i can not make it works ....
Post by: dkaip on March 12, 2010, 09:40:49 pm
Thank's
Jim