摘要: static void Main(string[] args) { int[] nums = { 1, 2, 10, 1, 5, 5, 3, 101, 11, 12, -1, 12 }; int secmax = SecNum(nums, nums.Length); #region 数组不做参数时,直接在主函数中写 //int max = nums[0]; ////int secmax = -1; //for (int i = 0; i < nums.Length; i++) //{ // //如果nums[i]大于最大数,... 阅读全文