代码:
#include<bits/stdc++.h> using namespace std; int main() { cout<<numeric_limits<short>::max()<<endl; cout<<numeric_limits<short>::min()<<endl; cout<<numeric_limits<int>::max()<<endl; cout<<numeric_limits<int>::min()<<endl; cout<<numeric_limits<long>::max()<<endl; cout<<numeric_limits<long>::min()<<endl; cout<<numeric_limits<long long>::max()<<endl; cout<<numeric_limits<long long>::min()<<endl; cout<<numeric_limits<float>::max()<<endl; cout<<numeric_limits<float>::min()<<endl; cout<<numeric_limits<double>::max()<<endl; cout<<numeric_limits<double>::min()<<endl; cout<<numeric_limits<long double>::max()<<endl; cout<<numeric_limits<long double>::min()<<endl; return 0; }
运行结果:
0.0分
1 人评分