gpt4 book ai didi

c++ - 我如何链接以下数据

转载 作者:行者123 更新时间:2023-11-28 07:49:14 25 4
gpt4 key购买 nike

我在以下代码中将 3 个元素(开始、停止)链接在一起时遇到问题。

 map <int, int> (start, stop) startomap;
map <unsigned, <int, int> > (n1, startomap);
map <string, unsigned> (s, n1) m3;

从 m3 我可以链接字符串和 n1, 我如何设置 map < string, > (s, startomap) m4; 同时确保 s -> n-> start->to 之间的 1 对 1 关系 非常感谢!

最佳答案

你想要这个吗?

map <int, int>  startomap;
map<unsigned, map<int, int> > n1startomap;
map <string, map<unsigned, map<int, int> > > sn1startmap;

关于c++ - 我如何链接以下数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14190291/

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