📄 sizeof.cpp
字号:
#include <iostream>
using namespace std;
int main()
{
int integer = 4;
cout << "The variable named integer is " << sizeof (integer) << " bytes long" << endl;
cout << endl;
cout << "The char type is " << sizeof (char) << " byte long" << endl;
cout << "The short type is " << sizeof (short) << " bytes long" << endl;
cout << "The int type is " << sizeof (int) << " bytes long" << endl;
cout << "The long type is " << sizeof (long) << " bytes long" << endl;
cout << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -