首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

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

2012-05-01 
为什么可以这样定义一个数组?/** Standard secondary message for unexpected errors.*/static const char

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

热点排行