摘要: Const 什么是CONST 被const修饰后的变量,只能保持一个值,无法再次赋值(一次指定用一辈子); int main(){ const int age=18; //age =20;//这句错误无法执行!!! return 0 ; } 如果修饰的是类、结构体、结构体或类的指针、其成员都不可以更 阅读全文
posted @ 2024-03-12 11:58 dxwxb 阅读(1) 评论(0) 推荐(0) 编辑
摘要: InLine_Function How to Write it? example-> inline void func(); inline int sum(int v1 , int v2 ); inline void func(){ std::cout<<"func()"<<std::endl; } 阅读全文
posted @ 2024-03-11 17:37 dxwxb 阅读(22) 评论(0) 推荐(0) 编辑