Skip to content
Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:6105923
Created

//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
Something went wrong with that request. Please try again.