Calculation in string declaration
#4

No this will give you certain errors
rather you can try this
Код:
#define cnt (12)

new string[cnt*11];
printf("%d",sizeof(string));
will print 132

Quote:
Originally Posted by darklight94
Посмотреть сообщение
Is there any other method to do this ?
^
Reply


Messages In This Thread
Calculation in string declaration - by darklight94 - 29.04.2012, 12:14
Re: Calculation in string declaration - by Lorenc_ - 29.04.2012, 12:17
Re: Calculation in string declaration - by darklight94 - 29.04.2012, 12:18
Re: Calculation in string declaration - by Niko_boy - 29.04.2012, 12:19
Re: Calculation in string declaration - by Ash. - 29.04.2012, 12:19
Re: Calculation in string declaration - by darklight94 - 29.04.2012, 12:53
Re: Calculation in string declaration - by IceCube! - 29.04.2012, 12:55
Re: Calculation in string declaration - by Niko_boy - 29.04.2012, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)