//fuction 可帶回傳值
private bool test(int a,ref int b)
{
a = a + 10;
b = a;
return true;
}
//Event
private void button1_Click(object sender, EventArgs e)
{
int x=0;//需有初始值
bool z= test(Int32.Parse(textBox.Text),ref x);
}
沒有留言:
張貼留言