Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
September 24, 2017, 06:51:47 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: Program 11.1 - extra ']'  (Read 1186 times)
DrDavid
Newbie
*
Posts: 26


Email
« on: January 13, 2012, 03:09:12 PM »

Program 11.1 - page 222 (location 5253 on kindle):

Code: (Objective-C)
-(Fraction *) mul: (Fraction *) f {
Fraction *result = [[Fraction alloc]init];

result.numerator = numerator * f.numerator;
result.denominator = denominator * f.denominator];

[result reduce];

return result;
}

On line 5 of the above snippet, you have an extra ']' in the book. This should be removed.
Logged
Mark Taber
Newbie
*
Posts: 6



Email
« Reply #1 on: February 23, 2012, 02:20:19 PM »

..also a few lines down in the divide section?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 classroomM.com. All rights reserved.