用于将摄氏温度转换为华氏温度。
GetFahrenheit, which converts a Celsius temperature to Fahrenheit.
在该示例中,温度转换程序可以将华氏温度转换为摄氏温度。
In this example, a temperature converter converts Fahrenheit to Centigrade.
让我们首先来看一段代码,其作用是将华氏温度转换为摄氏度,如清单1所示。
Let's begin with a bit of code to convert temperatures in Fahrenheit to temperatures in Celsius, shown in Listing 1.
应用推荐