摘要: 一、sizeof sizeof()返回值最好用size_t保存,在x86和x64下,该类型有不同的表示,unsigned int(32位),unsigned __int64(64位) #include <iostream> #include <string> #include <vector> in 阅读全文
posted @ 2020-12-04 23:48 滴哒哒哒 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一、const 指针常量与常量指针 去掉const限定(类型退化) const_cast 2. const在不同位置的作用 const int fun(); 函数返回值为 const int fun(const int arg); 参数arg在函数内不可修改 int fun() const;函数为只 阅读全文
posted @ 2020-12-04 23:07 滴哒哒哒 阅读(4) 评论(0) 推荐(0) 编辑