Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Catching divide-by-zero with /EHc
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <stdio.h> int main(int argc, char **) { try { printf("%d\n", 1 / (argc-1)); } catch (...) { puts("caught"); } }
run
|
edit
|
history
|
help
0
new
C++ quine
throwing std::function on MSVC is dangerous
Wide string conversion with multibyte chars and locale
throwing Copyable versus throwing MoveOnly
Calculate sum between two numbers using for-, while-, and do-while loops
Copy elision sample modern C++
hangman
virtual test
#26.fix