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