0
Can't catch the division by 0 exception
i want this program to catch the division by 0 exception, however, this does not happen. Program just... crashes and doesent even execute the catch block. Why does this happen and how can i make it work? https://code.sololearn.com/cv8Cox07cDVr/?ref=app
2 odpowiedzi
+ 2
Division by 0 is not an exception in C++.
You'll have to check yourself whether you are dividing by 0 and then throw manually.
0
Dennis oh, i wanted to make a program that relied on it being a standart exception