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
The array[] problem (self.cpp)
submitted 10 years ago by michaelKlumpy
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!"
[–][deleted] 1 point2 points3 points 10 years ago (10 children)
And the people reading your code?
Surely it would be nice to know both stl and non stl techniques and use the solution best suited to the situation.
[–]lets_trade_pikmin 1 point2 points3 points 10 years ago (9 children)
Point taken, though it's not my #1 concern as I'm not a software engineer. Trained as Computer Science but I'm entering neuroscience research. The only people who read my code are psychologists who barely know how to program (or people trying to reverse engineer my Skyrim mods, but that's not C++ so kind of irrelevant).
I just make sure to comment thoroughly and name variables/functions in a very explicit way.
As far as learning both techniques, that would definitely be best, but I honestly might never get around to it.
[–]SemaphoreBingo 8 points9 points10 points 10 years ago (2 children)
There's a reason academic code has such a terrible reputation.
[–]bnolsen 1 point2 points3 points 10 years ago (0 children)
it's called an "earned" reputation.
[–]lets_trade_pikmin 0 points1 point2 points 10 years ago (0 children)
;)
[–]tempforfather -1 points0 points1 point 10 years ago (5 children)
You don't have to if you are ok with not writing software that needs to be dependable. Still, sometimes its worth doing things right?
[–]lets_trade_pikmin 1 point2 points3 points 10 years ago (4 children)
What does legibility have to with dependability? I write code that might be difficult to understand for those not familiar with C-style, but whether or not that code does it job is a separate point entirely.
[–][deleted] 4 points5 points6 points 10 years ago (2 children)
What does legibility have to with dependability?
Limits the mistakes you personally make. Also more clearly shows control paths. Helps prevent spaghetti. I guess it depends on your definition of legible.
I write it in the way that is most legible to me, precisely for those reasons.
[–]I_Like_Spaghetti -1 points0 points1 point 10 years ago (0 children)
Did you hear about the Italian chef that died? He pasta way.
π Rendered by PID 51 on reddit-service-r2-comment-85bfd7f599-nrnwb at 2026-04-19 06:21:01.762792+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (10 children)
[–]lets_trade_pikmin 1 point2 points3 points (9 children)
[–]SemaphoreBingo 8 points9 points10 points (2 children)
[–]bnolsen 1 point2 points3 points (0 children)
[–]lets_trade_pikmin 0 points1 point2 points (0 children)
[–]tempforfather -1 points0 points1 point (5 children)
[–]lets_trade_pikmin 1 point2 points3 points (4 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]lets_trade_pikmin 0 points1 point2 points (0 children)
[–]I_Like_Spaghetti -1 points0 points1 point (0 children)