Does a try-catch block catch segmentation fault errors?
try-catch
I am reading a text file using the function given below but sometimes the file is empty and the
try to check is it catcheable with catch(...){cout<<'catched';}
catch(...){cout<<'catched';}
Also try this line, this way you prevent pushing wrong format points:
if (!(ss >> a >> b)) {cout<<"wrong format"<