Skip to content

Instantly share code, notes, and snippets.

@tanvir002700
Created April 16, 2016 16:23
Show Gist options
  • Save tanvir002700/ef95802a09d813d17687fe804336acb8 to your computer and use it in GitHub Desktop.
Save tanvir002700/ef95802a09d813d17687fe804336acb8 to your computer and use it in GitHub Desktop.
#include<iostream>
#include<map>
using namespace std;
int main()
{
map<char,int>Map;
for(char c='a';c<='j';c++)
{
int value=(int)c;
Map[c]=value;
}
cout<<"Initially map size: "<<Map.size()<<endl;
for(char c='a';c<='z';c++)
{
if(Map[c]==0){}
}
cout<<"After Search map size: "<<Map.size()<<endl;
return 0;
}
Initially map size: 10
After Search map size: 26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment