What errors are you getting?

On Thu, Jul 9, 2009 at 4:42 PM, thread <yaniv...@gmail.com> wrote:

>
> 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