|
1金钱
char[] b;
private void button1_Click(object sender, EventArgs e)
{
if (textBox2.Text == "" && textBox3.Text == "" && textBox4.Text == "")
{
MessageBox.Show("请检查要输入的信息");
}
else
{
if (textBox2.Text != "")
{
string str1 = textBox2.Text;
b = str1.ToCharArray();
}
if (textBox3.Text !="")
{
string str1 = textBox3.Text;
b= str1.ToCharArray();
// this.kaishi();
}
if (textBox4.Text != "")
{
string str1 = textBox4.Text;
b = str1.ToCharArray();
}
如果我3个里面都有字符,传到同一数组里面,后面的就把前面的覆盖掉了。怎么解决这个问题
|
|