会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
demps_c
博客园
首页
新随笔
联系
管理
订阅
2014年3月19日
extern
摘要: 只要当处于函数外的声明时才能初始化函数内的不能函数内的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
阅读(116)
评论(0)
推荐(0)
编辑