else
{
if (ii == xh.Length - 1)
{
Console.WriteLine("你输入的学号不存在!请重新输入");
}
}
ii++;
}
}
}
//修改
static void Amend(int n, int m, string xg)
{
string[] lines = File.ReadAllLines(@".\学生管理系统文件.txt", Encoding.Default);
string[] arr = new string[11];
string[] xh = new string[lines.Length - 1];
string[] xm = new string[lines.Length - 1];
string[] xb = new string[lines.Length - 1];
string[] nl = new string[lines.Length - 1];
string[] dh = new string[lines.Length - 1];
string[] dz = new string[lines.Length - 1];
string[] bj = new string[lines.Length - 1];
string[] bz = new string[lines.Length - 1];
string[] yw = new string[lines.Length - 1];
string[] sx = new string[lines.Length - 1];
string[] yy = new string[lines.Length - 1];
for (int i = 1; i < lines.Length; i++)
{
string str = lines[i];
arr = str.Split('\t');
// Console.WriteLine(arr[2]);
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];