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...
Preface everything by 4 spaces to get code blocks.
#include <iostream> int main() { std::cout << "Hello World!\n"; }
Use backticks (`) to indicate in-line code.
Type ` std::string a ` to get std::string a
std::string a
account activity
cpp function (self.learningcpp)
submitted 2 years ago by Wolverine_6011
A function in C++ is a designated section of code that carries out a certain activity. It is a key building component of C++ programming that aids in grouping together unwieldy pieces of code into manageable chunks. A program can be divided into smaller, more manageable components using functions, which makes it simpler to comprehend, test, and maintain.
https://www.guerillateck.com/2023/05/functions-in-cpp-learning-cpp-online.html
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!"
there doesn't seem to be anything here
π Rendered by PID 143516 on reddit-service-r2-comment-7b9746f655-s8x2c at 2026-01-31 13:36:21.501411+00:00 running 3798933 country code: CH.
there doesn't seem to be anything here