0
Can anyone make me a program which tells the first maximum and second maximum value in an array?
2 Respuestas
+ 1
I'm sure someone can do it. Tell me what you tried and I tell you how it can be done.
0
T max1{}, max2{};
for (const auto& x: arr)
{
...
}