#include
#include
using namespace std;
int main()
{
cout << “type: \t\t“ << “------------------size-----------------------“<< endl;
cout << “bool: \t\t“ << “Bytes:“ << sizeof(bool);
cout << “\tMaxValue:“ << (numeric_limits::max)();
cout << “\t\tMinValue:“ << (numeric_limits::min)() << endl;
cout << “char: \t\t“ << “Bytes:“ << sizeof(char);
cout << “\tMaxValue:“ << (numeric_limits::max)();
cout << “\t\tMinValue:“ << (numeric_limits::min)() << endl;
cout << “signed char: \t“ << “Bytes:“ << sizeof(signed char);
cout << “\tMaxValue:“ << (numeric_limits::max)();
cout << “\t\tMinValue:“ << (numeric_limits::min)() << endl;
cout << “unsigned char: \t“ << “Bytes:“ << siz
评论
共有 条评论