fre*_*low 2 c++ variables scope module const
在C++中,const变量隐式地隐藏在其他翻译单元中.有可能阻止吗?
const
Tro*_*our 7
是的,在定义前加上extern例如.
extern
extern const int x = 10;
归档时间:
15 年,2 月 前
查看次数:
381 次
最近记录: