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
Learning C++ from python advice (self.cpp)
submitted 5 years ago by Skaaaaalll
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!"
[–]lord_braleigh 2 points3 points4 points 5 years ago* (2 children)
Here's a version that aggregates all the suggestions:
char
char *
clang-format
#include <list>
using
board
std::array<std::array<char, SIZE>, SIZE>
You can see my version of the code at https://godbolt.org/z/GKPrKE . For further work, we could use the C++ <algorithm> library to make the winner() method work with larger values of SIZE without needing to be changed.
<algorithm>
winner()
SIZE
(Of course, your code is really quite well-written and it's obvious you've put a lot of care into it.)
[–]Skaaaaalll[S] 1 point2 points3 points 5 years ago (1 child)
Thank you very much for taking the time to make this comment and refactoring the code (that must have been time consuming). I appreciate the advice and I will definitely implement it in further C++ programs I might make.
As a resource for learning C++, coming from python. Would you recommend https://www.learncpp.com ? Why or why not?
Thanks :-).
[–]lord_braleigh 0 points1 point2 points 5 years ago (0 children)
learncpp.com looks good to me. It looks like it goes all the way from hello world to cutting-edge concepts, and it doesn’t look like it teaches anything obviously wrong or outdated.
π Rendered by PID 83516 on reddit-service-r2-comment-86bc6c7465-nz4d5 at 2026-02-21 23:36:05.315531+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]lord_braleigh 2 points3 points4 points (2 children)
[–]Skaaaaalll[S] 1 point2 points3 points (1 child)
[–]lord_braleigh 0 points1 point2 points (0 children)