Arrays
Posted: Thu Jul 01, 2004 10:23 am
When I do something like this in a method:
int a = 2;
if(variabel == a) {
...
}
it works, but Not when using arrays like this:
int *a = {1,2,3};
if(variabel == a[1]) {
.....
}
it just doesnt work in any way...anything special I need to know about arrays??
int a = 2;
if(variabel == a) {
...
}
it works, but Not when using arrays like this:
int *a = {1,2,3};
if(variabel == a[1]) {
.....
}
it just doesnt work in any way...anything special I need to know about arrays??