有程序段如下:
private void Form1_Load(object sender,EventArgs e)
{
listBox1.Items.Clear();
int x=0;
for (int i=1;i<=5;i++)
{
x=2*x+1;
listBox1.Items.Add(x+1);
}
}
private void buttonl_Click(object send
有程序段如下:
private void Form1_Load(object sender,EventArgs e)
{
listBox1.Items.Clear();
int x=0;
for (int i=1;i<=5;i++)
{
x=2*x+1;
listBox1.Items.Add(x+1);
}
}
private void buttonl_Click(object sender, EventArgs e)
{
int i,s=0;
for (i=0;is=s+Convert.Tolnt32(listBox1.Items[i]);
textBox1.Text =s.ToString();
}
程序运行后,单击窗口中的button1按钮,在文本框textBox1中显示的内容是()。
【正确答案】:62
Top