C#编程:用Array.Reverse反转字符串(倒序输出)
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为输出;