tsize1.cc
来自「做为SD0609的一员,我扎实的基础是如何打出来的,来看看我那时连猴子选大王都不」· CC 代码 · 共 18 行
CC
18 行
#include <iostream>using namespace std;int main(){ cout << "size of char is: " << sizeof(char) << endl; cout << "size of char[20] is: " << sizeof(char[20]) << endl; cout << "size of int is: " << sizeof(int) << endl; cout << "size of int[20] is: " << sizeof(int[20]) << endl; cout << "size of long is: " << sizeof(long) << endl; cout << "size of short is: " << sizeof(short) << endl; cout << "size of float is: " << sizeof(float) << endl; cout << "size of double is: " << sizeof(double) << endl; cout << "size of long double is: " << sizeof(long double) << endl; cout << "size of bool is: " << sizeof(bool) << endl; return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?