方法

static void Main(string[] args)
        {
            string[] a = { "梅西", "卡卡", "郑大世" };
            
            Console.WriteLine(ceshi(a));
            Console.ReadKey();
           
        }
        public static string ceshi(string[] xx){

            string b="";
            for (int i = 0; i < xx.Length; i++) {

               b += xx[i]+"|";
          
             }
            b = b.Remove(b.LastIndexOf("|"), 1);
           
            return b;

 

posted @ 2015-09-07 18:05  尘梦  阅读(114)  评论(0编辑  收藏  举报