string[] sd = new string[dataGridView1.RowCount - 5];//存值
double zjz = 1, yjz = -1;
if (radioButton6.Checked)
{
for (int i = 1; i < sd.Length; i++)
{
sd[i] = zjz * sd[i]
}
}
else if (radioButton7.Checked)
{
for (int i = 1; i < sd.Length; i++)
{
sd[i] = yjz * sd[i];
}
}
else
MessageBox.Show("......");
出现了下面的错误
我就是想radioButton6开着的时候,数组乘1,等于原值,
radioButton7开着的时候,数组取负,
请问该怎么改呢?我自己已经整不明白了