Array of numbers
Array of numbers
- Subject: Array of numbers
- From: R T <email@hidden>
- Date: Tue, 10 May 2005 11:44:20 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Trying to set up many large arrays of (double)numbers
taht will not change. And I built a class. Then in the
Main I try to initialize them.
#import <Cocoa/Cocoa.h>
@interface pArray : NSObject {
double tArray[10];
}
- (double) tArray;
- (void) settArray:(double) atArray;
@end
-------------------------------
#import <Cocoa/Cocoa.h>
#import "pArray.h"
@implementation pArray
-(double) tArray { return tArray[10]; }
- (void) settArray:(double) atArray { tArray[10] =
atArray; }
@end
____________________________________
#import <Cocoa/Cocoa.h>
#import "pArray.h"
int main(int argc, char *argv[])
{
pArray *yr11r, *yr11g, *yr11b;
yr11r = [[pArray alloc] init];
double spare[10] = {251.1806006092005756,
15.73649816571729964, -38.55250579961138844,
18.6646726496034207, -4.296551930829748601,
0.4739075909473704491, -0.02077806058734893401,
-0.0003113397371798453354, 0.00005585334479602430891,
-.000001311698905778314492};
[yr11r settArray:spare];
return NSApplicationMain(argc, argv);
[yr11r free];
}
________________________________________
...And I get error: incompatible type for argument 3
of indirect function call.
In looking at all of this it seems there is probably
an easier way.
I need these arrays of numbers to be created once and
then called into use from other parts of the program.
Help
Rick T.
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden