Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:6105923
Created Jul 29, 2013

What would you like to do?
//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()) {
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