xh[i - 1] = arr[0];
xm[i - 1] = arr[1];
xb[i - 1] = arr[2];
nl[i - 1] = arr[3];
dh[i - 1] = arr[4];
dz[i - 1] = arr[5];
bj[i - 1] = arr[6];
bz[i - 1] = arr[7];
yw[i - 1] = arr[8];
sx[i - 1] = arr[9];
yy[i - 1] = arr[10];
}
int ii = 0;
while (true)
{
Console.WriteLine("修改以下操作:");
Console.WriteLine("1:姓名2:性别3:年龄4:电话5:地址6:班级7:班主任8:语文9:数学10:英语q:退出");
int tmp;
string str1 = Console.ReadLine();
//当输入q是跳出循环
if (str1 == "q")
{
break;
}
//当输入的是整数就返回,不是就报错
if (!int.TryParse(str1, out tmp)) //BAG:当输入大于10时
{
Console.WriteLine("没有此选项!请重新输入!");
continue;
}
Console.WriteLine("请输入学号");
string xuehao = Console.ReadLine();
for (int i = 0; i < xh.Length; i++)
{
if (xuehao == xh[i])
{
string xg = "";
switch (tmp)
{
case 1:
Console.WriteLine("请输入修改为");
xg = Console.ReadLine();
break;