• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: conditional if..else
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: conditional if..else


  • Subject: Re: conditional if..else
  • From: Charlton Wilbur <email@hidden>
  • Date: Tue, 17 Jul 2007 14:11:33 -0400


On Jul 17, 2007, at 2:00 PM, Frank Murray wrote:

Meaning, no matter if you enter "Celcius" or "Fahrenheit", the conditional always defaults
to "neither."  I'm guessing the code if <some condition> == <some string or char statement>
is not being equated or compiled properly, so any info is appreciated.  Thanks.

if (scale == "Celcius")

This is question 8.2 in the C FAQ (meaning, it's not a problem with Xcode).  You can find an answer in a good C programming reference, or in the C FAQ at http://c-faq.com/charstring/stringeq.html

Charlton


-- 
Charlton Wilbur
email@hidden
email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >conditional if..else (From: Frank Murray <email@hidden>)

  • Prev by Date: Re: Odd Console messages after kernel panic
  • Next by Date: Re: conditional if..else
  • Previous by thread: conditional if..else
  • Next by thread: Re: conditional if..else
  • Index(es):
    • Date
    • Thread