Amazon.com Widgets Chapter 6: Program examples
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 29, 2014, 05:24:54 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 6
| | | |-+ Chapter 6: Program examples
Pages: [1] Go Down
Print
Author Topic: Chapter 6: Program examples (Read 3173 times)
jerome
Newbie
*
Posts: 48






on: February 18, 2009, 01:01:04 PM

CU Jerome
Logged
StevenInc
Newbie
*
Posts: 6


Email




Reply #1 on: April 26, 2009, 07:28:41 AM

Just a quick note:
For program example 6.8
The scanf ("%lf %c %lf")...
The format is Long Float ("%lf") NOT 1 float ("%1f")
Logged
lojoma
Newbie
*
Posts: 5


Email




Reply #2 on: July 09, 2009, 11:40:00 AM

I am confused as to the reason why it has to be %lf and can't be %f. I see on page 119 it states this but I didn't read it as it HAS to be this. I didn't notice the "l" as I was typing it in and just did %f...and it wouldn't accept the input.

Is this just a "it has to be so" or is there something special about scanf that makes it that way?

Thanks
Logged
esc
Global Moderator
Full Member
*****
Posts: 230






Reply #3 on: July 09, 2009, 11:58:06 AM

lojoma, see this post:

http://classroomm.com/objective-c/index.php?topic=1121.msg3144#msg3144
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.