I'm beginning programming in Obj-C, and the book I'm learning from seems to have some typos here and there and this example code the book gave fails to compile.
Why is that?
Code:
// First program example
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int value1, value2, sum;
value1 = 50;
value2 = 25;
sum = value1 + value2;
NSLog (@”The sum of %i and %i is %i”, value1, value2, sum);
[pool drain];
return 0;
}
Why is that?