const
摘要:
一. const修饰变量的作用: 变量成为常量, 只能使用变量的值, 不能修改变量的值.二. const修饰不同数据类型的情况: 1. 基本数据类型, 如: int const int age1 = 20; // age1是常量 只读 int const age2 = 30; // ag... 阅读全文
posted @ 2016-01-14 16:14 Avrin 阅读(149) 评论(0) 推荐(0) 编辑
posted @ 2016-01-14 16:14 Avrin 阅读(149) 评论(0) 推荐(0) 编辑
posted @ 2016-01-11 23:45 Avrin 阅读(875) 评论(0) 推荐(0) 编辑
posted @ 2015-12-27 16:04 Avrin 阅读(449) 评论(0) 推荐(0) 编辑