C++学习 之const
摘要:
const在C++中很常用,在编程中也建议多使用const去告诉编译器和其他程序员某个值应该保持不变。 const可以用在很多地方: (1)用在classes外部修饰global或namespace作用域中的常量 (2)修饰文件、函数、或区块作用域中被声明为static的对象 (3)修饰classe 阅读全文
posted @ 2016-03-06 21:15 小凉 阅读(366) 评论(0) 推荐(0) 编辑