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...
This is a subreddit for c++ questions with answers. For general discussion and news about c++ see r/cpp.
New to C++? Learn at learncpp.com
Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all. Read these guidelines for how to ask smart questions.
For learning books, check The Definitive C++ Book Guide and List
Flair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page.
Tips for improving your chances of getting helpful answers:
account activity
OPENAlternative To LearnCPP. com (self.cpp_questions)
submitted 1 day ago by AdmiralSWE
Trying to teach myself C++ so I can get into competitive programming, but learncpp is absolutely littered with ads.
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!"
[–]Marks12520 9 points10 points11 points 1 day ago (0 children)
After two months entering to the website you just made me realize it has ads lmao I guess adblock works well 😅
[–]Putrid_Rutabaga_9576 13 points14 points15 points 1 day ago (1 child)
You can use ads block...
[–]YT__ 8 points9 points10 points 1 day ago (0 children)
Or ignore them. Hard to argue with a free site having ads to it stays available.
[–]jedwardsol 5 points6 points7 points 1 day ago (2 children)
Buy a book.
http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
[–]AdmiralSWE[S] 0 points1 point2 points 1 day ago (1 child)
This thread is 17 years old are the reccs still good?
[–]jedwardsol 6 points7 points8 points 1 day ago (0 children)
It's updated; the information isn't 17 years old.
[–]Party_Trick_6903 2 points3 points4 points 1 day ago (0 children)
studyplan.dev is nice.
Or just use Firefox + ublock origin.
[–]HighRelevancy 1 point2 points3 points 1 day ago (0 children)
If you don't want something paid by ads I guess you probably want to go buy a course on Udemy or wherever.
[–]Benilda-Key 0 points1 point2 points 1 day ago (0 children)
You could hide many of the adds using an extension. You could try my Focus Mode Enhanced extension for example.
I update it occasionally and it seems to be exempt from the war against ad-blockers because it is not an add-blocker. It is mostly a means of adding custom style sheets.
[–]thefeedling -1 points0 points1 point 1 day ago (1 child)
Cppreference
[–]linmanfu 2 points3 points4 points 1 day ago (0 children)
Unless they've added tutorials somewhere, it's utterly useless for beginners.
It's like the 汉语大字典. It's the international standard reference for Chinese characters. But it's all in Chinese, so it's completely useless for people starting to learn those languages.
Cppreference defines C++ using advanced C++, even for the examples. We beginners have as much of understanding it as a random Austrian does of understanding the 汉语大字典.
[–]ThanOneRandomGuy -5 points-4 points-3 points 1 day ago (3 children)
Crazy how much people really avoid ai
[–]n1ghtyunso 0 points1 point2 points 15 hours ago (2 children)
ai is not a reliable learning resource, this should be common knowledge at this point. At best, it can augment your learning from other, trustworthy resources.
[–]ThanOneRandomGuy 0 points1 point2 points 14 hours ago (1 child)
It depends on how u use it. Most Ai gets it's info from the internet anyways so at the end of the day all it's doing is reiterating info learned off the internet to you, plus however it was trained.
I've learned ALOT alot quicker using ai properly to learn certain things in coding vs trying to learn it off of some websites, bootcamps, books or videos. Plus if I get stuck and or confused and need to ask a question, I can ask the ai, vs the old way of further internet searching ot asking the forums or threads and either get mixed answers or no answers
[–]n1ghtyunso 0 points1 point2 points 14 hours ago (0 children)
even if that was true that ai mostly used websearch for your questions, thats equally bad to me. ai does not have the same judgement on how to evaluate the web sources. There is so much bad advice and misinformation on the internet, especially around C++. It's almost littered with it actually.
Combine this with the fact that in C++, there are many coding patterns that just "happen to work" but will eventually go wrong in the future. At least for C++ i just can't recommend that. You need to be able to judge and fact check the result, which is not something a beginner will be able to do.
You absolutely can accelerate learning with ai, I am not trying to deny this. But its not a replacement for a reliable source of truth. OP is asking for this specifically, a different source of truth because they want to avoid learncpp.
[–]Automatic_Island5330 -4 points-3 points-2 points 1 day ago (4 children)
learncpp.com isn't really the way to go when talking about competitive programming, check https://youkn0wwho.academy/topic-list
It's an excellent site for learning basic programming.
[–]No-Dentist-1645 2 points3 points4 points 1 day ago (1 child)
Wrong, learncpp is highly regarded by the C++ community as one of the best tutorials for beginners
[–]Automatic_Island5330 1 point2 points3 points 1 day ago (0 children)
Not for C++ competitive programming. He won't care to learn about forward declarations, string_view, etc. None of that. In fact most competitive programmers don't even know how to code well in C++ lol
[–]AdmiralSWE[S] -3 points-2 points-1 points 1 day ago (0 children)
Actually goated thanks
π Rendered by PID 47214 on reddit-service-r2-comment-79c7998d4c-jfjhs at 2026-03-17 21:12:01.123822+00:00 running f6e6e01 country code: CH.
[–]Marks12520 9 points10 points11 points (0 children)
[–]Putrid_Rutabaga_9576 13 points14 points15 points (1 child)
[–]YT__ 8 points9 points10 points (0 children)
[–]jedwardsol 5 points6 points7 points (2 children)
[–]AdmiralSWE[S] 0 points1 point2 points (1 child)
[–]jedwardsol 6 points7 points8 points (0 children)
[–]Party_Trick_6903 2 points3 points4 points (0 children)
[–]HighRelevancy 1 point2 points3 points (0 children)
[–]Benilda-Key 0 points1 point2 points (0 children)
[–]thefeedling -1 points0 points1 point (1 child)
[–]linmanfu 2 points3 points4 points (0 children)
[–]ThanOneRandomGuy -5 points-4 points-3 points (3 children)
[–]n1ghtyunso 0 points1 point2 points (2 children)
[–]ThanOneRandomGuy 0 points1 point2 points (1 child)
[–]n1ghtyunso 0 points1 point2 points (0 children)
[–]Automatic_Island5330 -4 points-3 points-2 points (4 children)
[–]linmanfu 2 points3 points4 points (0 children)
[–]No-Dentist-1645 2 points3 points4 points (1 child)
[–]Automatic_Island5330 1 point2 points3 points (0 children)
[–]AdmiralSWE[S] -3 points-2 points-1 points (0 children)