Created
September 18, 2012 15:10
-
-
Save yifu/3743659 to your computer and use it in GitHub Desktop.
This file contains 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> | |
#include <string> | |
using namespace std; | |
/******************************************************/ | |
/** Purpose: verify the default value for int as ******/ | |
/** a value in a map (value opposed to a key) ******/ | |
/******************************************************/ | |
int main() | |
{ | |
std::map<std::string, int> test; | |
cout << "test[\"3423\"] = " << test["3423"] << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment