file1.cpp

来自「C++ sample code, for the book: C++ blac」· C++ 代码 · 共 21 行

CPP
21
字号
#include <iostream>     
using namespace std;

int value1 = 1;            // external variable definition
int value2 = 2;            // external variable definition
static int value3 = 3;     // static external variable definition

void second_file_values();

int main()
{
    cout << "In file one..." << endl;
    cout << "value1: " << value1 << endl;
    cout << "value2: " << value2 << endl;
    cout << "value3: " << value3 << endl;

    second_file_values();

    return 0;
}

⌨️ 快捷键说明

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