Amazon.com Widgets Program 11.1 - extra ']'
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 24, 2014, 05:36:17 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Errata
| | |-+ 1st Printing
| | | |-+ Program 11.1 - extra ']'
Pages: [1] Go Down
Print
Author Topic: Program 11.1 - extra ']' (Read 572 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:



Login with username, password and session length

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 (c) 2009 classroomM.com. All rights reserved.