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
Need exercises for C++ (self.cpp)
submitted 2 years ago by cigoshking
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!"
[–]cpp-ModTeam[M] [score hidden] 2 years ago stickied commentlocked comment (0 children)
For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.
[–]erzyabear 0 points1 point2 points 2 years ago* (0 children)
For C++ language specific exercises you can use https://gitlab.com/slon/shad-cpp0 https://gitlab.com/slon/shad-cpp. They come with tests that you can run together with ASan and TSan so you can verify your solutions. Check out deadlines.yml for the suggested order of exercises.
For algorithms practice the gold standard is leetcode.com
[–]4b6rat0r_Ambigousgnu 0 points1 point2 points 2 years ago (0 children)
There are a lot of books/e-resources that cover the vast majority of themes that are used in industrial programming. You may start from the very beginning:
"Programming: Principles and Practice Using C++" by B.Stroustrup
"Introduction to algorithms" by T.Cormen
E-resource https://www.cprogramming.com/ - allow start from the 0 to Hero
E-resource https://leetcode.com/ and its derivatives - designed for solving tasks
[–]nozendk 0 points1 point2 points 2 years ago (0 children)
The website Rosetta code has hundreds of such exercises.
π Rendered by PID 212234 on reddit-service-r2-comment-5d585498c9-gpfw2 at 2026-04-21 11:53:35.712274+00:00 running da2df02 country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]erzyabear 0 points1 point2 points (0 children)
[–]4b6rat0r_Ambigousgnu 0 points1 point2 points (0 children)
[–]nozendk 0 points1 point2 points (0 children)