I'm using the selector for Mac OS X Cocoa App and files of class for Mac OS X Cocoa : Objective C Classes.
I try to initialize an array of 5 integers variables.
The declaration of the array int tipoDeIVA [5] is located in the interface file ..
#import << Foundation/Foundation.h >>
@interface ArticleObj_EX01 : NSObject
{
@public
int tiposDeIVA;
int tipoDeIVA[5];
}
typedef struct article_structure article_a;
...
...
-(void) setInitClass
{
int cont=0; // the next line give the error called Expected expression, say too "(!) Parse Issue" .. tipoDeIVA [5]={0,0,0,0,0}; // to get initialize the array I 'need' use a loop for with the next code .. for (cont=0;cont<5;cont++) tipoDeIVA [cont] = 0; tiposDeIVA = 0;}
...
I would like get initialize right arrays with multiple values in a single line of code.
Thanks, Sergio Xavier