我想要將斷句後的結果,顯示在textbox3,但是跑出不來斷句結果,有誰可以幫我解答呢?
private void button4_Click(object sender, EventArgs e)
{
string sourcel = textBox2.Text; //宣告字串來源
char[] ch1 = new Char[] { ',', '。', '?' }; // 遇到ch1 的字元就會切割成子字串
string[] split1 = sourcel.Split(ch1); //子字串們放在 split1的陣列裡
foreach (string str in sourcel.Split(ch1))
{
textBox3.Text = str;
}
}
private void button4_Click(object sender, EventArgs e)
{
string sourcel = textBox2.Text; //宣告字串來源
char[] ch1 = new Char[] { ',', '。', '?' }; // 遇到ch1 的字元就會切割成子字串
string[] split1 = sourcel.Split(ch1); //子字串們放在 split1的陣列裡
foreach (string str in split1)
{
textBox3.Text = str;
}
}