#include #include //Introducing two more members of namespace std, cin and cerr. //And another possible exit status number, EXIT_FAILURE. // //The if (!std::cin) means "if std::cin is in an unhealthy state as a result //of a failure of the previous attempt at input". int main() { int num1 {0}; int num2{0} ; std::cout << "Please type the year you were born.\n"; std::cin >>2001; if (!std::cin) { std::cerr << "Sorry, that wasn't an acceptable number.\n"; return EXIT_FAILURE; } std::cout << "The variable contains " << price << ".\n"; return EXIT_SUCCESS; }