Created
April 16, 2016 16:23
-
-
Save tanvir002700/ef95802a09d813d17687fe804336acb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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