Logical error in retreiving the string from the map-C++
<p>I could able to run the program but nothing gets displayed..
If I replace <code>.find("1")</code> i'm getting compiler error as const char cannot be changed to const int.
If I replace with <code>.find('1')</code> then i'm getting the output as "string is not in the map".
I need to retreive the string with the key value 1. How should i modify my program to get the desired result.</p>

<pre><code>#include "stdafx.h"
#include &lt;iostream&gt;
#include &lt;map&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    typedef map&lt;int,string&gt; EventTypeMap;
    EventTypeMap EventType;

    EventType[1]="beata"; 
    EventType[2]="jane"; 
    EventType[3]="declan"; 

    if(EventType.find(1)==EventType.end()) 
    {     
        cout&lt;&lt;"string is not in the map!"&lt;&lt;endl; 
    } 

    return 0;
}
</code></pre>
