ch03.01.c

来自「c++primer第四版代码」· C语言 代码 · 共 16 行

C
16
字号
// iostream.h is preStandard form
// #include <iostream>
#include <iostream.h>

/**
 ** 2 raised to the power of 10: 1024
 **/

int main() {
    // a first solution
    cout << "2 raised to the power of 10: ";
    cout << 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2;
    cout << endl;
    return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?