为什么可以这样定义一个数组?解决办法
为什么可以这样定义一个数组?
/*
* 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 数组,为什么不行呢?
/*
* 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 数组,为什么不行呢?