//通过试机号查找学生,返回下标 intsearch(const Examinee *examinees, int size, int testMachineNum) { for (int i = 0; i < size; ++i) { if (examinees[i].testMachineNum == testMachineNum) { return i; } }
return NPOS; }
intmain(void) { int n, m; Examinee examinees[1010];
scanf("%d", &n); for (int i = 0; i < n; ++i) { inputAttributes(examinees + i); } scanf("%d", &m); for (int i = 0; i < m; ++i) { int testMachineNum;