读书人

为什么可以这样定义一个数组?解决办法

发布时间: 2012-05-01 12:48:58 作者: rapoo

为什么可以这样定义一个数组?
/*
* Standard secondary message for unexpected errors.
*/
static const char please_report[] =
"Please report this to the Wireshark developers.\n"
"(This is not a crash; please do not report it as such.)";
//为什么可以这样定义一个数组?


[解决办法]
为什么不可以呢?
C语言就这么规定的啊。
[解决办法]
结帖率0.。。。。。lz三思啊
[解决办法]
static const char please_report[] =
"Please report this to the Wireshark developers.\n"
静态的char类型的常量数组!
[解决办法]
静态存储区,const 数组,为什么不行呢?

读书人网 >C++

热点推荐