#include <iostream>
#include <map>
#include <string>
using namespace std;

int main()
{
    map<double,string> myMap;
    myMap[10.01] = "A";
    myMap[14.62] = "B";
    myMap[16.33] = "C";
    myMap[45.23] = "D";
    myMap[0.23] = "E";

    map<double,string>::iterator it;
    for(it = myMap.begin(); it != myMap.end() ; it++){
        cout << it->first << " => " << it->second << endl;
    }

    map<double,string>::iterator firstAbove_1;
    firstAbove_1 = myMap.lower_bound(15.); //
    cout << "first greater than 15 is " << firstAbove_1->second << '\n';

    map<double,string>::iterator firstAbove_2;
    firstAbove_2 = myMap.upper_bound(15.);
    cout << "first greater than 15 is " << firstAbove_2->second << '\n';

    return 0;
}