#include<iostream> using namespace std; char MAX(char a,char b) { return a>b?a:b; } int MAX(int a,int b) { return a>b?a:b; } float MAX(float a,float b) { return a>b?a:b; } double MAX(double a,double b) { return a>b?a:b; } int main() { cout << MAX('A','B') <<endl; cout << MAX(1,2) <<endl; cout << MAX(1.1f,1.2f) <<endl; cout << MAX(1.1,1.2) <<endl; return 0; }
v