How can I determine the largest number among three numbers using C++?
I need to simplify this
w=(z>((x>y)?x:y)?z:((x>y)?x:y));
Starting from C++11, you can do
w = std::max({ x, y, z });