hello all,
i'm trying to use this code in MainClass but nothing works:
        struct Complex
        {
                double r;
                double i;
                public Complex(double rt,double it)
                {
                        r = rt;
                        i = it;
                }
                public static Complex add(Complex a,Complex b)
                {
                        return new Complex(a.r+b.r,a.i+b.i);
                }
                public static Complex sub(Complex a,Complex b)
                {
                        return new Complex(a.r-b.r,a.i-b.i);
                }
                public static Complex mul(Complex a,Complex b)
                {
                        return new Complex(a.r*b.r,a.i*b.i);
                }
        }

does anyone have an idea for it?

Reply via email to