#include <iostream>
using namespace std;
int main()
{
cout << ''bool type : '' << sizeof(bool) << '' bytes'' << endl;
cout << ''char type : '' << sizeof(char) << '' bytes'' << endl;
cout << ''int type : '' << sizeof(int) << '' bytes'' << endl;
cout << ''short type : '' << sizeof(short) << '' bytes'' << endl;
cout << ''long type : '' << sizeof(long) << '' bytes'' << endl;
cout << ''float type : '' << sizeof(float) << '' bytes'' << endl;
cout << ''double type : '' << sizeof(double) << '' bytes '' << endl;
cout << ''long double type : '' << sizeof(long double) << '' bytes '' << endl;
return 0;
}
asdfgvb
最新推荐文章于 2024-09-01 20:13:17 发布