F19

Write the function template of functions to find the maximum of three

Question

F19 – Write the function template of functions to find the maximum of three

values

—————————————————————

and lab 4

must be structure file and do it in Unix

https://www.coursehero.com/qa_wait.php?question_id=10387080

template ;class Tgt; int max(T amp; var1, T amp; var2, T amp; var3) { T max = var1; if (var2 gt; max) max = var2; if (var3 gt; max) max = var3; return max; }
Engineering Technology