flok99

Untitled

Oct 9th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1.     try {
  2.         ply = std::stoi(plyString);
  3.     }
  4.     catch(const std::invalid_argument & e) { // in case ply is missing
  5.         ply = 1;
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment