我做错了什么? 邮件momo dot beller at t-online dot de gpg http://gpg.notlong.com Moritz Beller写道:Moritz Beller wrote: 2005年10月8日00:02:35 - 0700 na****@yahoo.com.au 写道: On 8 Oct 2005 00:02:35 -0700 na****@yahoo.com.au wrote: #define MAXROW 2 #define MAXCOL 5#define MAXROW 2#define MAXCOL 5 为什么const int MAXROW = 2; ? Why not const int MAXROW = 2; ? 因为在C中,const不生成编译时常量。 所以,对于C99之前的C,你不能用它来做数组大小为 声明。或案例标签。 你说的是另一种语言,也许是C ++。 干杯 Michael - 电子邮件:我的是/ at / gmx / dot / de地址。Because in C, const does not generate compile time constants.So, for pre-C99 C, you cannot use it for array sizes atdeclaration. Or case labels.You are talking about another language, maybe C++.CheersMichael--E-Mail: Mine is an /at/ gmx /dot/ de address. 这篇关于使用指针进行多维数组初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-23 06:49