#include <iostream>
#include <limits>
using namespace std;
template <typename T>
T MaxValue()
{
return numeric_limits<T>::max();
}
template <typename T>
T MinValue()
{
return numeric_limits<T>::min();
}
int main()
{
cout<<"min int \t\t: \t"<<MinValue<int>()<<endl;
cout<<"max int \t\t: \t"<<MaxValue<int>()<<endl;
cout<<"min unsigned long \t: \t"<<MinValue<unsigned long>()<<endl;
cout<<"max unsigned long \t: \t"<<MaxValue<unsigned long>()<<endl;
return 0;
}
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。