#include void letturaPeso(int& n) throw(int) { std::cout << "inserisci il tuo peso: " << std::endl; std::cin >> n; if ( n < 0 ) throw (-1); // viene lanciato un intero }