/******************************************************************** @file main.cpp@date 2017-05-28 22:02:55@au Thor Zoro_tiger@brief Problem 1041:c Language Programming Tutorial (third Edition) after class exercise 9.8http://www.dotcpp.com/oj/problem1041.html********************************************************************/#include<cstdio>#include<algorithm>#defineTEST#undefTEST#defineMAX (A, B, c) Getmax (A, B, c)floatGetmax (floatAfloatBfloatc) { returnStd::max (Std::max (A, B), c);intMainintargcConst Char*argv[]) {#ifdef TEST freopen ("In.txt","R", stdin); Freopen ("OUT.txt","W", stdout);#endif //! Input floatA =0, B =0, C =0; scanf ("%f%f%f", &a, &b, &c); //! outputprintf"%.3f\n", Getmax (A, B, c)); printf ("%.3f\n", MAX (A, B, c)); return 0;}
Question 1041:c Language Programming tutorial (third Edition) after class exercise 9.8