摘要: 今天在做题时,需要用到在一个自定义的结构体数组(实际上是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) 编辑