求一個數組當中最大(最小)值的兩種計算方法

求一個數組當中最大(最小)值的兩種計算方法 一、經常使用方法(以求最大值爲例) 1 #include "stdafx.h" 2 #include <string> 3 using namespace std; 4 int _tmain(int argc, _TCHAR* argv[]) 5 { 6 int a[5] = { 1, 23, 2, 6, 7 }; 7 in
相關文章
相關標籤/搜索