how to find the largest number of a vector in c++ code example
Example: largest element in vector c++
// Find the max element
cout << "\nMax Element = "
<< *max_element(a.begin(), a.end());
// Find the max element
cout << "\nMax Element = "
<< *max_element(a.begin(), a.end());