由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] another question for C++ constant
相关主题
c++中的inline 函数是做什么的?[合集] C++: Is the temporary object automatically const
looking for a compact C/VC++ compiler; any recommendations?A C++ compiler related interview question
请教C++里面这个表达A tech question (转载)
ambiguous operators in c++An interesting C++ compile error
Do the two statements cost the same amount of time?C++疑问
数组指针的问题谁来解释一下这个是compiler问题吗?
C array关于Makefile的一个问题
[合集] C++ delete[]嵌入式编程问题
相关话题的讨论汇总
话题: c++话题: fri话题: aug话题: constant话题: buf
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
noid (DoIneedit?) 于 (Fri Aug 8 19:04:28 2008) 提到:
const int j = 10;
char buf[j + 10]; // ok, no problem
the value of j cannot be used at compile time because the compiler is not
required to know the contents of the storage at compile time. How does buf[j
+10] pass the complier?
☆─────────────────────────────────────☆
thrust (WoW 无限期冬眠中) 于 (Fri Aug 8 19:12:57 2008) 提到:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
who said so?
☆──────────
1 (共1页)
进入Programming版参与讨论
相关主题
嵌入式编程问题Do the two statements cost the same amount of time?
关于C++ STL编译的疑问数组指针的问题
question for C++ constantC array
a question about CAST[合集] C++ delete[]
c++中的inline 函数是做什么的?[合集] C++: Is the temporary object automatically const
looking for a compact C/VC++ compiler; any recommendations?A C++ compiler related interview question
请教C++里面这个表达A tech question (转载)
ambiguous operators in c++An interesting C++ compile error
相关话题的讨论汇总
话题: c++话题: fri话题: aug话题: constant话题: buf