📄 hexoct2.cpp
字号:
// hexoct2.cpp -- display values in hex and octal
#include <iostream>
using namespace std;
int main()
{
using namespace std;
int chest = 42;
int waist = 42;
int inseam = 42;
cout << "Monsieur cuts a striking figure!" << endl;
cout << "chest = " << chest << " (decimal)" << endl;
cout << hex; // manipulator for changing number base
cout << "waist = " << waist << " hexadecimal" << endl;
cout << oct; // manipulator for changing number base
cout << "inseam = " << inseam << " (octal)" << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -