No they do not work. See this: http://psx-scene.com/forums/f276/%5B...cripts-102230/
I was also answering your question from the code you posted. Yes, you defined the correct number of items for that array.
|
|
|
|
Would you like to get all the new info from
PSX-Scene in your email each day?
Want to learn more about the team keeping you up to date with the latest scene news?
Read about them now! Check out our Developer bios, too! | ||
|
|
No they do not work. See this: http://psx-scene.com/forums/f276/%5B...cripts-102230/
I was also answering your question from the code you posted. Yes, you defined the correct number of items for that array.
what i did wasn't declaring it was referencing, arrays indexes are basically pointerscorrect me if i'm wrong, i'm sure @Raeralus would knowPHP Code:char *string="hello";
char *char1arrayindex=string[0]; //h from hello
char *char1pointer=*(string+0); //h from hello (again)
char *char2arrayindex=string[1]; //e from hello
char *char2pointer=*(string+1); //e from hello (again)
char *char5arrayindex=string[4]; //o from hello
char *char5pointer=*(string+4); //o from hello (again)

hi
Last edited by ribonucleic; 02-13-2013 at 09:15 AM.
@ribonucleic
I dont know anything on this so correct me if im wrong but wouldnt something like this work for pointing your strings or chars.
PHP Code:char *strarray[2][5] = { { "hello", "ohell", "lohel", "llohe", "elloh" }, { "1", "2", "3", "4", "5" } };
strarray[1][1]; // hello
strarray[1][2]; // ohell
strarray[1][3]; // lohel
strarray[1][4]; // llohe
strarray[1][5]; // elloh
strarray[2][1]; // 1
strarray[2][2]; // 2
strarray[2][3]; // 3
strarray[2][4]; // 4
strarray[2][5]; // 5
| « Previous Thread | Next Thread » |
| Tags for this Thread |