摘要: c++ const 关键字 作用 修饰变量,说明该变量不可改变 修饰指针,分为指向指针的常量 (pointer to const) 和 自身是常量的指针 (const pointer) 修饰引用,指向常量的引用 (reference to const) 修饰成员函数,说明该成员函数内不能修改成员变量 阅读全文
posted @ 2023-04-21 15:44 卑以自牧lq 阅读(35) 评论(0) 推荐(0)