📜  如何在一对映射中找到一对 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:16.849000             🧑  作者: Mango

代码示例1
ok is a map,int>;
d and k are random variables that needed to be made into a pair and put into map.

         if(ok.find({d,k})==ok.end())
             ok.insert({{d,k},1});
         else
             ok[{d,k}]++;
         cout<