#include<iostream>
using namespace std;
template<typename T,typename type>
bool compare(T a, type b)
{
float c = a - b;
if (fabs(c) > 0) return true;
return false;
}
int main()
{
int a;
double b;
cout << "a:" << endl;
cin >> a;
cout << "b:" << endl;
cin >> b;
if (compare(a, b)) cout << "a>b" << endl;
else cout << "a<b" << endl;
return 0;
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)