朱红的泪

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月24日

摘要: 代码测试平台:Window 7 Server + MicrosoftVisual Studio 10 Visual C++某些说明问题的汇编代码: Debug模式下的汇编代码1.const变量声明const int n1; // 错误,声明的同时必须要伴随着初始化.const int n1 = 3; // 正确.extern const int n2; // 正确.const int* pn1; // 正确.int* const pn2; // 错误,声明的同时必须要伴随着初始化.int n2 = 5;int* const pn2 = &n2; // 正确.const int nArr 阅读全文
posted @ 2011-09-24 20:15 朱红的泪 阅读(2351) 评论(9) 推荐(2) 编辑