#include using namespace std; int main() { int cookies, people; double cpp; struct my_struct_t { int p; int c; } s; try { cout << "Enter number of people: "; cin >> people; cout << "Enter number of cookies: "; cin >> cookies; if (cookies == 0) throw s; else if (cookies < 0) throw static_cast(people); } catch(int e) { cout << e << " people, and no cookies!\nGo buy some cookies!\n"; } catch(double t) { cout << "Second catch block type double -- do we reach it?\n"; } cout << "End of program.\n"; return 0; }