Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <map>
  2. #include <utility>
  3. #include <iostream>
  4. using std::cout;
  5. using std::endl;
  6. using std::map;
  7. using std::pair;
  8.  
  9. int main(int argc, char* argv[])
  10. {
  11. map<int, pair<double, double> > rangeChoices {
  12. {1, {86, 102}},
  13. {2, {54, 80}},
  14. {3, {72, 88}}
  15. };
  16.  
  17. for (auto choice : rangeChoices)
  18. {
  19. cout << "Choice: " << choice.first
  20. << " Low: " << choice.second.first
  21. << " High: " << choice.second.second
  22. << endl;
  23. }
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement