#include <iostream>
#include <exception>
using namespace std;
void func(int a)
{
if (a == 0)
throw "Error: Null argument";
}
int main()
{
int a = 0;
try
{
func(a);
}
catch (exception& err)
{
cout <<"Standart exception: " << err.what() << endl;
}
cout << "The end:";
return 0;
}
Здравствуйте, не обрабатывается исключение