Why does the catch-all not handle this exception when input is zero?
try
{
int input;
std::cin >> input;
// input is zero
int x = 50 / input;
cout << "you will never see this if input is zero";
}
catch (...)
{
cout << "or this for some reason";
}
EDIT: I'm not trying to handle a divide by zero scenario, just wondering why catch all didn't work for that particular case. Thanks dude.