Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (states.eof() == 0)
- {
- std::istringstream complexString;
- getline(states, tmp_str, ':');
- tmp_triplet.row() = stoi(tmp_str);
- getline(states, tmp_str, ':');
- tmp_triplet.col() = stoi(tmp_str);
- getline(states, tmp_str, ':');
- complexString.str (tmp_str);
- complexString >> tmp_triplet.value();
- // Then something useful done with the triplet before moving onto the next one
- }
Add Comment
Please, Sign In to add comment