Я работаю над небольшой утилитой командной строки и столкнулся с ошибкой. Ошибка читает
"Ожидаемый идентификатор или '(' перед '='
токен "в цикле.
Вот код:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
int i;
NSMutableArray *items = [[NSMutableArray alloc]init];
[items addObject:@"One"];
[items addObject:@"Two"];
[items addObject:@"Three"];
[items insertObject:@"Zero" atIndex:0];
for (int = 0;i < [items count];i++) {
NSLog(@"%@", [items objectAtIndex:i]);
}
[pool drain];
}
Пытался найти ошибку, но не смог. Ваша помощь приветствуется. ТИА