Calculation in string declaration
#1

Hi, is it possible to do something like that:
Код:
new cnt = 5
new string[cnt*11];
Reply
#2

.No.
Reply
#3

Is there any other method to do this ?
Reply
#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
#5

Edit: Sorry. Misread the original post.
Reply
#6

So, it is possible to get the number of rows of a MySQL table define the value and multiply it with 11 in a string declaration?
Reply
#7

In short No.
Reply
#8

No its not possible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)