如何将字符串数组添加到语句

时间:2019-06-28 17:17:27

标签: arrays string

如何将字符串数组添加到语句中

 string [] eduQua = new string [5];
 if (checkBox1.Checked) { eduQua[0] = "O/L"; } else { eduQua[0] = "0"; }
 if (checkBox2.Checked) { eduQua[1] = "A/L"; } else { eduQua[1] = "0"; }
 if (checkBox3.Checked) { eduQua[2] = "Degree"; } else { eduQua[2] = "0"; }
 if (checkBox4.Checked) { eduQua[3] = "PHD"; } else { eduQua[3] = "0"; }
 if (checkBox5.Checked) { eduQua[4] = "Master"; } else { eduQua[4] = "0"; }

0 个答案:

没有答案