const是C++中的常量修饰符,即所修饰的对象为常量(immutable)
常量类型的变量或对象的值是不能被更新的
代码:
https://github.com/haohaibo/learn/tree/master/test/advanced/cpp_tutorial/const
参考:
http://blog.csdn.net/Eric_Jo/article/details/4138548
http://blog.csdn.net/sddzycnqjn/article/details/7289712
C/C++ const总结
最新推荐文章于 2020-03-19 21:45:13 发布