#include #include //for srand, exit, EXIT_SUCCESS, EXIT_FAILURE #include //for time #include //for set_new_handler #include "game.h" using namespace std; void my_new_handler(); int main(int argc, char **argv) { srand(static_cast(time(0))); set_new_handler(my_new_handler); game g; g.play(); return EXIT_SUCCESS; } void my_new_handler() { cerr << "out of store\n"; exit(EXIT_FAILURE); }