题解 | #获取两数中的较大值#
获取两数中的较大值
https://www.nowcoder.com/practice/136bd5e1021d4d698b9f5227d7dfb684
#include <iostream> using namespace std; namespace own { template<typename T> T max(const T& a,const T& b) { return (a>b)?a:b; } } int main() { // write your code here...... int a = 0; int b = 0; cin>>a>>b; cout<<own::max(a,b); return 0; }