Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
error
//g++ 5.4.0 #include <iostream> using namespace std; void transaction(double t); int main() { try { cout<<"step 1"<<endl; transaction(80); cout<<"step2"<<endl; transaction(40); cout<<"step3"<<endl; } catch (char *x) { cout<<x<<endl; } cout<<"step 4"<<endl; } void transaction(double amt) { cout<<"beginning transaction"<<endl; if(amt<50) throw "less than minm balance"; }
run
|
edit
|
history
|
help
0
dsu on tree(264E BLOOD COUSIN RETURNS)
C++ object lifecycle example
A • Potato Sacks
str_to_int
1st
Discounting Future Stream
Dar
Subarray with 0 sum
spiral traversal of a matrix
template