#include <iostream>
//确定在你的计算机上变量类型的长度。
using std::cout;
int main()
{
cout<<“the size of an int is:tt” << sizeof(int) <<“bytesn.”;
cout<<“the size of an short int is:tt” << sizeof(short) <<“bytesn.”;
cout<<“the size of an long int is:tt” << sizeof(long) <<“bytesn.”;
cout<<“the size of an wchar_t is:tt” << sizeof(wchar_t) <<“bytesn.”;
cout<<“the size of an char is:tt” << sizeof(char) <<“bytesn.”;
cout<<“the size of an float is:tt” << sizeof(float) <<“bytesn.”;
cout<<“the size of an double is:tt” << sizeof(double) <<“bytesn.”;
cout<<“the size of an bool is:tt” << sizeof(bool) <<“bytesn.”;
return 0;
}