摘要: const 变量能被其他文件 extern 引用吗?为什么? 先来看一段代码: // 来源:公众号编程珠玑 // main.cc #include<stdio.h> // 引用外部定义的const_int变量 extern const int const_int; int main() { prin 阅读全文
posted @ 2021-07-13 14:52 不明白就去明白 阅读(194) 评论(0) 推荐(0) 编辑