/// <summary> /// 显示高于指定分数的所有学生 /// </summary> /// <param name="teacher"></param> public static void DisplayScoreHighThan(this ITeacher teacher) { try { Write("你想将分数指定为: "); teacher.GetStuHighThan(int.Parse(ReadLine())); } catch (FormatException) { DisplayTheInformationOfErrorCode(ErrorCode.ArgumentError); } catch (ArgumentOutOfRangeException) { DisplayTheInformationOfErrorCode(ErrorCode.ArgumentOutOfRange); } }