由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] static const代替define的performance tradeoff在哪里?
相关主题
What're the three types of memory allocated for C++ variables?请问如何把初始化一个const 的vector (or array) in a class?
[合集] const 变量问题c++ 一问
[合集] 一个指针的小问题C++默认的copy constructor的疑惑
why use static function here?看道c++题: brianbench
[合集] 为什么不能: declare a static memeber funcin-class static member question
C++ question请教c++ interface class问题
C++ cast 小结c++里面caveats太多了
[合集] 为什么 const member 不能是 static.c++ 语法
相关话题的讨论汇总
话题: mon话题: nov话题: variable话题: static话题: 2006
进入Programming版参与讨论
1 (共1页)
c***d
发帖数: 996
1
☆─────────────────────────────────────☆
blueivan (bl.ue) 于 (Mon Nov 6 16:48:51 2006) 提到:
编译器到底是用值还是用变量???
☆─────────────────────────────────────☆
NeverLearn (Nice people finish last) 于 (Mon Nov 6 17:02:23 2006) 提到:
It has to be variable-oriented since you can type cast away the
constness of a variable, so you can NOT assume it never changes.

☆─────────────────────────────────────☆
Pontiff (需要一点运气--to candidacy) 于 (Mon Nov 6 17:51:11 2006) 提到:
variable. just as static storage s
1 (共1页)
进入Programming版参与讨论
相关主题
c++ 语法[合集] 为什么不能: declare a static memeber func
c++ 弱问题:static const char* const 这两个const 分别是什么意思?C++ question
Why does default exception use char *?C++ cast 小结
why int** cannot convert to const int** ?[合集] 为什么 const member 不能是 static.
What're the three types of memory allocated for C++ variables?请问如何把初始化一个const 的vector (or array) in a class?
[合集] const 变量问题c++ 一问
[合集] 一个指针的小问题C++默认的copy constructor的疑惑
why use static function here?看道c++题: brianbench
相关话题的讨论汇总
话题: mon话题: nov话题: variable话题: static话题: 2006