您的位置:首页 > 编程语言 > C#

C#华氏温度和摄氏温度的相互专函源码片段

2019-01-15 21:44 666 查看

把写代码过程经常用到的一些代码做个记录,如下资料是关于C#华氏温度和摄氏温度的相互专函片段的代码。

public static double CelsiusToFahrenheit
(string temperatureCelsius)
{
double celsius = System.Double.Parse (temperatureCelsius);
}

public static double FahrenheitToCelsius
(string temperatureFahrenheit)
{
double fahrenheit = System.Double.Parse (temperatureFahrenheit);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  温度转换