エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
4d mapping in C++? ネストしたmapは、 map<string, map<string, map<string, int> > > employees; empl... 4d mapping in C++? ネストしたmapは、 map<string, map<string, map<string, int> > > employees; employees["person1"]["gender"]["age"] = 200; のように書くより、キーをtupleにしてしまった方が管理が楽。 map<tuple<string, string, string>, int> employees; employees[make_tuple("person1", "gender", "age")] = 200; そして、それよりもクラスを作ろう。 #include <map> #include <string> #include <tuple> struct Employee { std::string person; std::string sex; std::s