Amazon.com Widgets Program 3.2
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2013, 10:49:28 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
| |-+  Program Examples
| | |-+  Chapter 3
| | | |-+  Program 3.2
Pages: [1]   Go Down
Print
Author Topic: Program 3.2  (Read 796 times)
Epicurus
Newbie
*
Posts: 5


Email




« on: October 14, 2010, 05:35:00 PM »

Why is it that we define the print method in implementation with (@"%i/ %i, numerator, denominator)
and then do it again in the program section differently with (@"The value of my Fraction is:") ?
Logged
Epicurus
Newbie
*
Posts: 5


Email




« Reply #1 on: October 14, 2010, 06:15:59 PM »

Ok, I got that one:

we tell the program that Fraction will return "%i/%i

then when it goes to myFraction we embed that into "The value of my fraction is:"
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.