📜  stl c ++代码示例中的最小元素

📅  最后修改于: 2022-03-11 14:44:57.728000             🧑  作者: Mango

代码示例1
#include 
using namespace std;
int main()
{
      vector v{ 9, 4, 7, 2, 5, 10, 11, 12, 1, 3, 6 };
    int c = *min_element(v.begin(), v.end());
  
    cout<<"Min Element of the vector is "<< c;
    return 0;
}