Ejemplo n.º 1
0
        /// <summary>

        /// 将计算数相加,与其他计算式的相加值一样时舍去

        /// </summary>

        /// <returns></returns>

        private int[] IsCommon()

        {
            string s = "";

            LinkBinaryTree <Number> ic = new LinkBinaryTree <Number>();

            int[] c = ic.Arithmetic(a[0], a[1], '+', ref s);

            c = ic.Arithmetic(c, a[2], '+', ref s);

            c = ic.Arithmetic(c, a[3], '+', ref s);

            return(c);
        }