C#汉字反序输出
private void txtHanZhi_TextChanged(object sender, EventArgs e) { char[] chr = txtHanZhi.Text.ToCharArray(); //转换成字符数组 Array.Reverse(chr, 0, txtHanZhi.Text.Length); //反转数组 txtPinYin.Text = new StringBuilder().Append(chr).ToString();//显示 }
最后更新:2017-04-02 00:06:49