Ejemplo n.º 1
0
        public int CompareTo(object other)
        {
            if (other == null)
            {
                return(1);
            }

            Bruch that = other as Bruch;

            if (this < that)
            {
                return(-1);
            }
            else if (this > that)
            {
                return(1);
            }
            return(0);
        }
Ejemplo n.º 2
0
 /*
  * prints a Bruch output on the console
  * @param output: Bruch
  */
 public void printBruch(Bruch output)
 {
     Console.WriteLine(output);
 }
Ejemplo n.º 3
0
        /*
         * reads an Bruch input from an user on the console
         * @return input: Bruch
         */
        public Bruch readBruch()
        {
            Bruch input = null;

            return(input);
        }
Ejemplo n.º 4
0
 public void multiplizieren(Bruch bruch)
 {
 }
Ejemplo n.º 5
0
 public void dividieren(Bruch bruch)
 {
 }
Ejemplo n.º 6
0
 public void subtrahieren(Bruch bruch)
 {
 }
Ejemplo n.º 7
0
 //Funktionen
 public void addieren(Bruch bruch)
 {
 }