Created
July 29, 2013 17:17
-
-
Save anonymous/6105923 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
//An istream is passed in to the function as an argument so we don't need to worry about generating it. Referred to by "in". | |
string line; char key; string value; istringstream iss; | |
while (in.good()) { | |
getline(in,line); | |
iss.str(line); | |
iss >> key; | |
iss >> value; | |
codeMap[key] = value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment