Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
post_decrement_example
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> int main() { std::cout << "Hello, world!\n"; int factor; factor = 3; if(factor-- > 0) { std::cout << factor << "\n"; /* 2 */ } if(factor-- > 0) { std::cout << factor << "\n"; /* 1 */ } if(factor-- > 0) { std::cout << factor << "\n"; /* 0 */ } if(factor-- > 0) { std::cout << factor << "\n"; /* skipped */ } }
run
|
edit
|
history
|
help
0
vector destruction - visual studio
multiplie linked list numbers
problem_solution_1
c++ eval - double numbers v1.0
ria
Wide string conversion with multibyte chars and locale
Dynamically sized array at end of struct
vector of bool
Why is vsnprintf Not Writing the Same Number of Characters as strncpy Would?
std::is_same doesn't check for calling convention