基本信息
源码名称:数组合并组合
源码大小:0.13M
文件格式:.zip
开发语言:C#
更新时间:2019-11-23
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 5 元 
   源码介绍

三个数组穷举组合成新的数据

 

        List<string> Combin(List<List<string>> s)

        {
            var temp = s[0];
            for (int i = 1; i < s.Count; i )
            {
                temp = Multiplication(temp, s[i]);
            }
            return temp;
        }

        List<string> Multiplication(List<string> a, List<string> b)
        {
            List<string> result = new List<string>();
            for (int i = 0; i < a.Count; i )
            {
                for (int j = 0; j < b.Count; j )
                {
                    result.Add(a[i] "," b[j]);
                }
            }
            return result;
        }