Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ find minimum value in vector

#include <iostream>
#include <algorithm> 
#include <vector> 
using namespace std;

int main()
{
    vector<int> a = {1,5,6,7,8,3};
    cout << *min_element(a.begin(), a.end());
    return 0;
}
 
PREVIOUS NEXT
Tagged: #find #minimum #vector
ADD COMMENT
Topic
Name
1+7 =