摘要: 为了调用算法,必须含入头文件 <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 阅读全文
posted @ 2013-05-09 18:38 轻典 阅读(311) 评论(0) 推荐(0) 编辑