Created
June 18, 2014 05:41
-
-
Save team55/2854650b0d4236c57d3f to your computer and use it in GitHub Desktop.
test swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Fahrenheit { | |
var temperature: Double | |
init() { | |
temperature = 32.0 | |
} | |
} | |
var f = Fahrenheit() | |
println("The default temperature is \(f.temperature)° Fahrenheit") | |
// prints "The default temperature is 32.0° Fahrenheit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Fahrenheit { | |
var temperature: Double | |
init() { | |
temperature = 32.0 | |
} | |
} | |
var f = Fahrenheit() | |
println("The default temperature is \(f.temperature)° Fahrenheit") | |
// prints "The default temperature is 32.0° Fahrenheit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment