Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <map>
- #include <utility>
- #include <iostream>
- using std::cout;
- using std::endl;
- using std::map;
- using std::pair;
- int main(int argc, char* argv[])
- {
- map<int, pair<double, double> > rangeChoices {
- {1, {86, 102}},
- {2, {54, 80}},
- {3, {72, 88}}
- };
- for (auto choice : rangeChoices)
- {
- cout << "Choice: " << choice.first
- << " Low: " << choice.second.first
- << " High: " << choice.second.second
- << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement