Example #1
0
 public static void initial(cesius cd, fah fa)
 {
     cd.Tempeture = int.MinValue;
     fa.Tempeture = int.MinValue;
     cchanger0    = 0;
     fahchanger0  = 0;
 }
Example #2
0
        public static void productf(cesius cd, fah fa)
        {
            int pipe  = 9 * cd.Tempeture;
            int pipe2 = pipe / 5;

            fa.Tempeture = pipe2 + 32;
        }
Example #3
0
 public static void initial(cesius cd, fah fa)
 {
     cd.Tempeture = int.MinValue;
     fa.Tempeture = int.MinValue;
     cchanger0 = 0;
     fahchanger0 = 0;
 }
Example #4
0
 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);
 }
Example #5
0
 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;
 }
Example #6
0
 public static void productc(cesius cd, fah fa)
 {
     cd.Tempeture = (5 * (fa.Tempeture - 32)) / 9;
 }
Example #7
0
 public static void productf(cesius cd, fah fa)
 {
     int pipe = 9 * cd.Tempeture;
     int pipe2 = pipe / 5;
     fa.Tempeture = pipe2 + 32;
 }
Example #8
0
 public static void productc(cesius cd, fah fa)
 {
     cd.Tempeture = (5 * (fa.Tempeture - 32)) / 9;
 }