Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 1:
- {
- int elem = std::stoi(vec.at(0));
- std::to_string(elem);
- std::cout << "ERROR: Weight sensor measurement only" << endl;
- std::cout << "ERROR: Ignore line " << nline << " of the input file" << endl;
- try
- {
- int elem = std::stoi(vec.at(0));
- std::to_string(elem);
- }
- catch (invalid_argument)
- {
- cerr << "ERROR: Weight sensor value read on line " << nline << " is not an integer" << endl;
- cerr << "Simulation terminated early : Please correct your data file" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement