遇到一个关于terminate() 在 c++里的重载问题,请问各位大虾这个如何是好。。
Which of the following methods can a developer use to override the default
ter
minate() function in C++?
A. Write the terminate() function with two int arguments.
B. Write the terminate() function with a runtime_error
argument.
C. Pass the address of the overriding function to the
set_terminate() functi
on.
D. Write the terminate() function with one int argument.
E. Write the terminate() function with a runtime_exception
argument.
我只知道C是可以的。
这个可以当做普通的重载来做吗?多谢。。。