예제 #1
0
 public void Sub(Uhrzeit t2)
 {
     if (t2.sec > sec)
     {
         this.sec = t2.sec - this.sec;
     }
     else
     {
         this.sec = this.sec - t2.sec;
     }
 }
예제 #2
0
파일: Pogram.cs 프로젝트: Cernyy/Uebungen
        static void Main(string[] args)
        {
            Uhrzeit u1 = new Uhrzeit(12, 12, 12);
            Uhrzeit u2 = new Uhrzeit(02, 02, 02);

            Console.WriteLine(u1.sec);
            Console.WriteLine(u2.sec);
            u1.Drucken();
            u2.Drucken();
            u1.Diff(13, 13, 13);
            u1.Drucken();
        }
예제 #3
0
 public void Add(Uhrzeit t2)
 {
     sec += t2.sec;
 }