![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
heyhehey
这个作者很懒,什么都没留下…
展开
-
标准C++的一些特定的返回值类型介绍(原作于08年11月20日)
1、string-->string::size_type string的size操作的返回值类型,为unsigned类型,也可用于下标操作的下 标数2、vector-->vector::size_tpye vector的size操作的返回值类型,为unsigned类型,也可用原创 2009-04-18 10:54:00 · 331 阅读 · 0 评论 -
C++中关于const的一些理解 (原作于08年11月20日)
1、const 引用是指向 const 对象的引用: const int ival = 1024; const int &refVal = ival; // ok: both reference and object are const int &ref2 = ival; // error: non const reference to a const objec原创 2009-04-18 10:54:00 · 347 阅读 · 0 评论