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

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

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 数组的合并和拆分
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] num1 = { 0,1,2,3,4,5,6,7,8,9};
            int[] num2 = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
            int[] num3 = new int [20];
            Array.Copy(num1,num3,10);
            Array.Copy(num2,0, num3, 10,10);
            for (int i = 0; i < 20; i  )
            {
                Console.WriteLine(num3[i]);
            }
            Console.ReadKey();
        }
    }
}