min_element()和max_element
頭檔案:#include<algorithm>
作用:傳回容器中最小值和最大值。max_element(first,end,cmp);其中cmp為可選擇參數!
閑言少叙,上代碼,一看就懂:
min_element()和max_element
頭檔案:#include<algorithm>
作用:傳回容器中最小值和最大值。max_element(first,end,cmp);其中cmp為可選擇參數!
閑言少叙,上代碼,一看就懂: