I have a class containing a few arrays a,b, and c. These are double values.
However, when I set the values to fractions, it is still 0!
But if I set them directly, it works!
Why don't these arrays work!?
Code:
@interface ArrayContainer : NSObject
{
double a[10][10];
double b[10][2];
double c[10];
}
Code:
...
a[2][1] = 1/5;
...
Code:
...
a[2][1] = .2;
...