会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
助手的fork
博客园
首页
新随笔
联系
订阅
管理
2021年10月13日
自定义类型的vector容器中使用find_if
摘要: 今天在做题时,需要用到在一个自定义的结构体数组(实际上是vector容器)里面查找特定的值: 即: struct good { int id; int sc; }; vector<vector<good>> goods; 在goods中查找 id == 特定值 的good。 由于习惯使用vector
阅读全文
posted @ 2021-10-13 19:22 助手的fork
阅读(578)
评论(0)
推荐(0)
编辑
公告