Re: strange problem with radiomenuitem



Am Thu, 27 Oct 2005 16:42:59 +0200 schrieb Stefan Kost:

Hi
Alexander Nagel wrote:
Hi all,
i created some radiomenuitem with this.

string tmp;
for (int i = 0; i<10;i++)
{
     ostringstream outStream;
     outStream << i;
     tmp = "Gruppe " +outStream.str();

char tmp[10]; // length of "Gruppe xx"
for (int i = 0; i<10;i++)
{
   sprintf(tmp,"Gruppe %d",i);

the're a thousand more ways to do it (e.g. to avoid copying the 'Gruppe' string 
in there again and again).

Yup indeed much easier
Thanks
Alex





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]