码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2019-01-16 01:10:12      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:sys   toc   过程   代码   temp   源码   str   写代码   stat   

把写代码过程经常用到的一些代码做个记录,如下资料是关于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);
}

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

标签:sys   toc   过程   代码   temp   源码   str   写代码   stat   

原文地址:http://blog.51cto.com/14137494/2343136

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!