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
_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list