#include <iostream>
using namespace std;
void main()
{
cout << sizeof(char) << endl;
cout << sizeof(unsigned char) << endl;
cout << sizeof(signed char) << endl;
cout << sizeof(int) << endl;
cout << sizeof(unsigned int) << endl;
cout << sizeof(signed int) << endl;
cout << sizeof(float) << endl;
cout << sizeof(double) << endl;
cout << sizeof(long) << endl;
cout << sizeof(long long) << endl;
system("pause");
}
c++ 数据字节
最新推荐文章于 2024-07-29 08:30:00 发布