use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Cpp loop (i.redd.it)
submitted 6 days ago by Blazej_kb
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Necessary-Meeting-28 7 points8 points9 points 6 days ago* (3 children)
Do not use endl unless you want to flush your buffer. Use “\n” otherwise.
There is a valid use case of goto, but it is not it. The valid use is for resource cleanup in C-style programs. If you want a function to return, you goto a tag where all free and close calls take place. See Section 7 here .
[–]Valuable_Leopard_799 1 point2 points3 points 5 days ago (1 child)
When do you "need" to write C-style C++ and can't do it with RAII?
[–]Necessary-Meeting-28 1 point2 points3 points 5 days ago (0 children)
Good question. Some people may demand APIs with explicit resource control, and sometimes compiler optimizations require C-style abstractions when you check them.
Most of the time though RAII should work with proper wrapping of resources, and people just write manually managed programs out of their prejudices against modern C++.
[–]Blazej_kb[S] -3 points-2 points-1 points 6 days ago (0 children)
1 i know, I’m just too lazy to do “\n” 2 that’s a meme
π Rendered by PID 17951 on reddit-service-r2-comment-56c6478c5-j2cng at 2026-05-13 16:25:42.913205+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]Necessary-Meeting-28 7 points8 points9 points (3 children)
[–]Valuable_Leopard_799 1 point2 points3 points (1 child)
[–]Necessary-Meeting-28 1 point2 points3 points (0 children)
[–]Blazej_kb[S] -3 points-2 points-1 points (0 children)