Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
exception
//g++ 5.4.0 #include <iostream> using namespace std; class myexception:public exception {virtual const char* what() const throw() { return "exception arised"; } }myex; int main() { try { throw myex; } catch(exception& e) { cout<<e.what()<<endl; } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
map::swap()_30-Seconds-of-C++
inheritance test
ncr
Kadane's Algorithm
palindrome
BST to DLL
Dar
¡Arriba, Papalotes, Arriba! v2
enums
HTML Node
Please log in to post a comment.