//************************************************** //test gestione eccezioni //************************************************** #include using namespace std; int main(){ int testVal; try{ cout<<"insert value bigger then 0\n"; cin>>testVal; if(!testVal) throw "Error:you insert 0!\n"; else if(testVal<0) throw testVal; } catch(char *str){ cout<