您当前的位置: 首页 >  c#

刘一哥GIS

暂无认证

  • 6浏览

    0关注

    934博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

C#面向对象编程练习

刘一哥GIS 发布时间:2015-05-29 20:15:11 ,浏览量:6

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

namespace ConsoleApplication1
{
    class Program
    {
        public class apple
        {
            public string info;
            public apple()
            {
            }   
            public string app(string[] a)
            {
                foreach (string value in a)
                    info += value + "+";
                info=info.Substring(0,info.Length-1);
                return info;
            }
        }
        static void Main(string[] args)
        {
            string[]b = new string[]{"Hello","GeoStrom","Haha"};
            apple A = new apple();
            Console.WriteLine(A.app(b));
            Console.WriteLine();
        }
    }
}
关注
打赏
1665586602
查看更多评论
立即登录/注册

微信扫码登录

0.0544s