Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Assertion Divide by Zero Example
#include <assert.h> #include <iostream> using namespace std; int division(int a, int b) { if (b==0) { cerr << "Error at line " << __LINE__ << " in file " << __FILE__ << endl; } assert(b!=0); return (a/b); } int main () { int x = 11; int y = 0; int z; z = division(x, y); cout << "Answer is " << z << endl; return 0; }
run
|
edit
|
history
|
help
0
GraphBase
Throttle Example (Send two requests every two seconds)
Palindrome Recursive Function Example
Throttle Example using a circular queue (Push all but 2 less than maxSize; then pop all but 2 of current size)
specialized template
std::function copies
6 14 15 17 21 33 29
PrintAddress
FUCK
Example Node Program