コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
 public static void initial(cesius cd, fah fa)
 {
     cd.Tempeture = int.MinValue;
     fa.Tempeture = int.MinValue;
     cchanger0    = 0;
     fahchanger0  = 0;
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
        public static void productf(cesius cd, fah fa)
        {
            int pipe  = 9 * cd.Tempeture;
            int pipe2 = pipe / 5;

            fa.Tempeture = pipe2 + 32;
        }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
 public static void initial(cesius cd, fah fa)
 {
     cd.Tempeture = int.MinValue;
     fa.Tempeture = int.MinValue;
     cchanger0 = 0;
     fahchanger0 = 0;
 }
コード例 #4
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
 public static int  check(cesius cd, fah fa)
 {
     if (cchanger0 == 0)
     {
         productc(cd, fa);
         return(0);
     }
     else if (fahchanger0 == 0)
     {
         productf(cd, fa);
         return(1);
     }
     return(-1);
 }
コード例 #5
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
 public static int check(cesius cd, fah fa)
 {
     if (cchanger0 == 0)
     {
         productc(cd, fa);
         return 0;
     }
     else if (fahchanger0 == 0)
     {
         productf(cd, fa);
         return 1;
     }
     return -1;
 }
コード例 #6
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
 public static void productc(cesius cd, fah fa)
 {
     cd.Tempeture = (5 * (fa.Tempeture - 32)) / 9;
 }
コード例 #7
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
 public static void productf(cesius cd, fah fa)
 {
     int pipe = 9 * cd.Tempeture;
     int pipe2 = pipe / 5;
     fa.Tempeture = pipe2 + 32;
 }
コード例 #8
0
ファイル: MainWindow.xaml.cs プロジェクト: mharry32/-
 public static void productc(cesius cd, fah fa)
 {
     cd.Tempeture = (5 * (fa.Tempeture - 32)) / 9;
 }