摘要:
为了调用算法,必须含入头文件 <algorithm>#include <iostream>#include <algorithm>#include <vector>using namespace std;int main(){ vector<int> vect = {1,2,3,4}; // -std=c++0x std::cout<<*max_element(vect.begin(),vect.end())<<std::endl; std::cout<<*min_element(vect.begi 阅读全文