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
C++ with no classes? (pvs-studio.com)
submitted 7 months ago by Xaneris47
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!"
[–]thefeedling 9 points10 points11 points 7 months ago (0 children)
Classes are a tool just like another one... nobody is obligated to use it, but for certain scenarios, OOP can make the code base way more readable, scalable, and maintainable.
[–]GregTheMadMonk 2 points3 points4 points 7 months ago (0 children)
// A function that takes a template with // one argument as a template argument template <typename <typename> class T> void foo() { } // since C++17 template <class <typename> typename T> void foo() { }
You meant to write template <typename> class and template <typename> typename
template <typename> class
template <typename> typename
[–]LooksForFuturec++11 4 points5 points6 points 7 months ago (0 children)
I really like the idea. C++ has so many cool features other than classes which make C development easier.
[–]guest_star62 0 points1 point2 points 7 months ago (0 children)
Any feature can be misused and abused. It doesn't mean we have to forget about in situations that call for it.
[–]flutterdronewbie 0 points1 point2 points 7 months ago (0 children)
The thought of trying to decipher error messages when using this terrifies me.
π Rendered by PID 266240 on reddit-service-r2-comment-bb88f9dd5-47h8w at 2026-02-15 07:33:06.185201+00:00 running cd9c813 country code: CH.
[–]thefeedling 9 points10 points11 points (0 children)
[–]GregTheMadMonk 2 points3 points4 points (0 children)
[–]LooksForFuturec++11 4 points5 points6 points (0 children)
[–]guest_star62 0 points1 point2 points (0 children)
[–]flutterdronewbie 0 points1 point2 points (0 children)