Mode:
Duration:
1
2
3
4
5
6
7
8
9
#include <iostream>
#include <map>
int main() {
std::map<int, std::string> m = {{1, "One"}, {2, "Two"}};
auto it = m.find(2);
if (it != m.end()) std::cout << it->second;
return 0;
}Coding works best on desktop or with an external keyboard.