create many string with same var name
#1

hello i need 10 or more string like

Код:
str[10][128];
i use it like this
Код:
dini_Get(FileStr, "Name0",str[0],sizeof(str[0]))
but gives errors

Код HTML:
 : error 001: expected token: "]", but found "-integer value-"
 : warning 215: expression has no effect
 : error 001: expected token: ";", but found "]"
 : error 029: invalid expression, assumed zero
 : fatal error 107: too many error messages on one line
i cant do like this , i dont want like this
Код:
str0[128];
str1[128];
str2[128];
.
.
.
Reply
#2

You need to show us the lines where the errors occur?
Reply
#3

you can use '128' instead of 'sizeof(str[0])'
Reply
#4

I guess what he meant from that [0] is the array not the size.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)