I am using a List where I wonder how it is possible to find the MaxValue searching trough
Value1 until Value1.
In this case it should return: 12
I have found a ::Max function but this will only consider the 2 values inside the paranthes wich then will return: 100.
For the std:: you can use std::max_element( , ) for this purpose to search through a range of elements.
List<double>^ Value1= gcnew List<double>(); Value1->Add(12); Value1->Add(2); Value1->Add(7); Value1->Add(4); double MaxValue1 = 0; MaxValue1 = System::Math::Max( 0, 100 );