会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaoxi666
Master programmers think of systems as stories to be told rather than programs to be written.
博客园
首页
新随笔
联系
订阅
管理
2017年5月12日
vector作为参数的三种传参方式
摘要: c++中常用的vector容器作为参数时,有三种传参方式,分别如下(为说明问题,用二维vector): function1(std::vector<std::vector<int> > vec),传值 function2(std::vector<std::vector<int> >& vec),传引
阅读全文
posted @ 2017-05-12 09:32 xiaoxi666
阅读(60179)
评论(1)
推荐(12)
公告
TOP