public
anonymous / gist:6105923
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9
//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;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.