?? sizer.cpp
字號:
#include <iostream>
int main()
{
std::cout << "The size of an int is:\t\t";
std::cout << sizeof(int) << " bytes.\n";
std::cout << "The size of a short int is:\t";
std::cout << sizeof(short) << " bytes.\n";
std::cout << "The size of a long int is:\t";
std::cout << sizeof(long) << " bytes.\n";
std::cout << "The size of a char is:\t\t";
std::cout << sizeof(char) << " bytes.\n";
std::cout << "The size of a bool is:\t\t";
std::cout << sizeof(bool) << " bytes.\n";
std::cout << "The size of a float is:\t\t";
std::cout << sizeof(float) << " bytes.\n";
std::cout << "The size of a double is:\t";
std::cout << sizeof(double) << " bytes.\n";
return 0;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -