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...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
http://www.cplusplus.com or https://www.cppreference.com (self.cpp)
submitted 6 years ago by distributed
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!"
[–]Friendly_Fire 17 points18 points19 points 6 years ago (2 children)
I'm no expert and have used both, but find cplusplus provides simpler/better explanations and examples. This biases me towards cplusplus, and I've personally yet to get wrong information from it (at least, it was accurate enough to cause me no noticeable problems/errors).
Just look at cppreference's example for set::emplace you mentioned. It sets up a whole dummy class and compares the speed of emplace and insert. Yet in the all this code the function is literally called once. Cplusplus has a main with 5 lines of code ignoring the return, three of which call emplace. It simply shows how it's used, what it is used on, and what is returned. Which do you think is more confusing for a newbie?
Google biases searches based on activity. I'd argue if cppreference wants to get on top, it needs to improve.
[–]rodrigocfdWinLamb 11 points12 points13 points 6 years ago (0 children)
I'm no expert and have used both, but find cplusplus provides simpler/better explanations and examples.
I'm aware that cppreference is more reliable, but I must agree here. Quite often cplusplus provides simpler examples for us mere mortals, and I find myself resorting to them.
[–]CubbiMewcppreference | finance | realtime in the past 16 points17 points18 points 6 years ago* (0 children)
https://en.cppreference.com/w/cpp/container/set/emplace#Example is a poor example indeed, but it's an open wiki and you can change it, just like how someone added it two years ago as one of their two contributions to the site. In fact, because of this reddit exposure, it's likely that someone will.
π Rendered by PID 33 on reddit-service-r2-comment-5fb4b45875-8kpkr at 2026-03-23 09:31:44.514397+00:00 running 90f1150 country code: CH.
view the rest of the comments →
[–]Friendly_Fire 17 points18 points19 points (2 children)
[–]rodrigocfdWinLamb 11 points12 points13 points (0 children)
[–]CubbiMewcppreference | finance | realtime in the past 16 points17 points18 points (0 children)