84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
#include<cmath> #include<iostream> #include<algorithm> using namespace std; int main() { extern int a = 1;//不允许对外部变量的局部声明使用初始值 return 0; }
我知道extern int a这样写是可以的,或者把extern int a = 1放在全局区也是可以的,但是为什么放在函数内部,例如main()里就报错呢?求解释。
extern int a
extern int a = 1
认证高级PHP讲师
https://stackoverflow.com/que...
I never noticed it before
https://stackoverflow.com/que...
I never noticed it before