terminate_handler set_terminate(terminate_handler qNewHandler) throw();
#include <exception>
#include <iostream>
#include <exception>
void NewTerminate() {
std::cout << "The end." << std::endl;
abort();
}
int main() {
// Set a new terminate handler and get the old one back
terminate_handler qOldTerminate = set_terminate(NewTerminate);
// Throw anything to call the terminate function
throw "XoaX.net";
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.