您当前的位置: 首页 >  ar

彭世瑜

暂无认证

  • 3浏览

    0关注

    2791博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

C#编程:用Array.Reverse反转字符串-1_彭世瑜_新浪博客

彭世瑜 发布时间:2017-04-22 09:20:21 ,浏览量:3

private void textBox1_TextChanged(object sender, EventArgs e)
        {
            char[] p_chr = textBox1.Text.ToCharArray();
            Array.Reverse(p_chr,0,textBox1.Text.Length);
            textBox2.Text = new StringBuilder().Append(p_chr).ToString();
        }
//text1为输入,text2为输出;
关注
打赏
1665367115
查看更多评论
立即登录/注册

微信扫码登录

0.1241s