const
摘要:
const作用 1) 可以定义const常量 const int max = 1002) 对传入的参数进行类型检查,不匹配进行提示 void f(const int i) { .........}3) 可以保护被修饰的东西 void f(const int i) { i=10;//error! }4... 阅读全文
posted @ 2014-10-24 22:29 kangbry 阅读(672) 评论(0) 推荐(0)
posted @ 2014-10-24 22:29 kangbry 阅读(672) 评论(0) 推荐(0)
posted @ 2014-10-24 15:22 kangbry 阅读(483) 评论(0) 推荐(0)
posted @ 2014-10-24 09:18 kangbry 阅读(131) 评论(0) 推荐(0)
posted @ 2014-10-24 09:05 kangbry 阅读(166) 评论(0) 推荐(0)