摘要:
只要当处于函数外的声明时才能初始化函数内的不能函数内的extern 变量不能初始化下面是例子void f1(){ extern int a;}void f2(){ int a=100;}关于引用const int a =100;const int & b = a;常量引用只能是指向常量的引用int c = 1000;int &d = c;非常量的引用只能指向非常量的引用 阅读全文
posted @ 2014-03-19 16:37
demps_c
阅读(126)
评论(0)
推荐(0)
浙公网安备 33010602011771号