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

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