Guest User

Untitled

a guest
Jan 3rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. while (states.eof() == 0)
  2. {
  3. std::istringstream complexString;
  4.  
  5. getline(states, tmp_str, ':');
  6. tmp_triplet.row() = stoi(tmp_str);
  7. getline(states, tmp_str, ':');
  8. tmp_triplet.col() = stoi(tmp_str);
  9. getline(states, tmp_str, ':');
  10. complexString.str (tmp_str);
  11. complexString >> tmp_triplet.value();
  12. // Then something useful done with the triplet before moving onto the next one
  13. }
Add Comment
Please, Sign In to add comment