data10_01.cpp

来自「一本语言类编程书籍」· C++ 代码 · 共 17 行

CPP
17
字号
// File data10_01.cpp
#include <string>
using std::string;

// The next two variables have external linkage
int count;                    // Will be initialized to 0 by default
float phi = 1.618f;           // The divine proportion or golden ratio

// Without the extern, the following would not be accessible
// from another file because they would have internal linkage
extern const double pi = 3.14159265;

extern const string days[] = {
                       "Sunday",   "Monday", "Tuesday", "Wednesday",
                       "Thursday", "Friday", "Saturday"
                             };

⌨️ 快捷键说明

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