[Solved] How to order ascending the variables a , b , c?
[ad_1] My favourite way; hopefully self-explanatory if (a > c) std::swap(a, c); if (a > b) std::swap(a, b); if (b > c) std::swap(b, c); Don’t forget to pass the parameters to Crescator by reference if you want to make them sorted in the caller. [ad_2] solved How to order ascending the variables a , b … Read more