#include
#include
#include
using namespace std;
int main()
{
cout << "type: \t\t\t" << "************size**************"<< endl;
cout << "short: \t\t\t" << "字节数:" << sizeof(short) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t\t最小值:" << (numeric_limits::min)() << endl;
cout << "int: \t\t\t" << "字节数:" << sizeof(int) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t最小值:" << (numeric_limits::min)() << endl;
cout << "unsigned: \t\t" << "字节数:" << sizeof(unsigned) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t最小值:" << (numeric_limits::min)() << endl;
cout << "long: \t\t\t" << "字节数:" << sizeof(long) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t最小值:" << (numeric_limits::min)() << endl;
cout << "unsigned long: \t\t" << "字节数:" << sizeof(unsigned long) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t最小值:" << (numeric_limits::min)() << endl;
cout << "long long: \t\t" << "字节数:" << sizeof(long long) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t\t最小值:" << (numeric_limits::min)() << endl;
cout << "unsigned long long: \t" << "字节数:" << sizeof(unsigned long long) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t\t最小值:" << (numeric_limits::min)() << endl;
cout << "double: \t\t" << "字节数:" << sizeof(double) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t最小值:" << (numeric_limits::min)() << endl;
cout << "long double: \t\t" << "字节数:" << sizeof(long double) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t最小值:" << (numeric_limits::min)() << endl;
cout << "float: \t\t\t" << "字节数:" << sizeof(float) <
cout << "最大值:" << (numeric_limits::max)();
cout << "\t最小值:" << (numeric_limits::min)() << endl;
return 0;
}