关键字 const
来源:互联网 发布:南京中博软件学院 编辑:程序博客网 时间:2024/06/02 17:05
const 变量和对象都是只能被访问,不能被修改。
const与指针
1、指向常量数据的变量指针 const int *p 数据不能变,地址可以变
2、指向变量数据的常量指针 int * const q = &t 定义是必须初始化
3、指向常量数据的常量指针 const int * const r = &t
const 成员函数
声明const成员函数的关键是在成员函数头后添加const关键字。 const成员函数不能修改调用它的对象
- const关键字
- const关键字
- const关键字
- 关键字const
- const关键字
- const关键字
- const关键字
- const 关键字
- 关键字 const
- const关键字
- const关键字
- const关键字
- const关键字
- const关键字
- const关键字
- const关键字
- 关键字 const
- const关键字
- 熵与经济、工作的统一
- 你见,或者不见我
- 仓央嘉措--最美的诗
- 建jsp站点
- 字符数,字节数
- 关键字 const
- 输入框最多只能显示的字符数
- the first demo: HelloWorld compiled by masm5.0
- Google分页案例分析:
- java基础加强:
- Word PDF PPT TXT之间转换方法,工作学习都会用到!!PS:曾是500强面试题~
- 开始学习Android开发
- android——布局文件的名称
- 扫雷(不能一键分享、只能保存个喽)