gpt4 book ai didi

c++ - C++中的 map 数据结构

转载 作者:行者123 更新时间:2023-11-30 02:06:35 26 4
gpt4 key购买 nike

我需要创建一个 vector map 。第一个 vector 包含一个字符串列表,第二个 vector 包含一个整数 ID 列表。这可能吗?

最佳答案

std::map<std::string, int> isThisWhatYouNeed; //?
std::map<std::vector<std::string>, std::vector<int> > orThis; //?

关于c++ - C++中的 map 数据结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8688094/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com