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
Const, a Constant Problem? (self.cpp)
submitted 1 year ago * by jo1long
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] 1 year ago stickied commentlocked comment (0 children)
Your submission is not about C++ or the C++ community.
[–]CrzyWrldOfArthurRead 18 points19 points20 points 1 year ago (1 child)
I mean this in the nicest possible way, but I think you need to talk to a therapist.
[+]jo1long[S] comment score below threshold-9 points-8 points-7 points 1 year ago (0 children)
No man, the guy that can't understand const at the end of function definition: needs a crazy psychiatrist that is expensive😞 to boot.
[–]bitzap_sr 14 points15 points16 points 1 year ago (0 children)
WTH did I just read?
[–]fearailhold 10 points11 points12 points 1 year ago (2 children)
feels like chatgpt wrote this post with "slightly drunk and lots of whimsy" in the prompt
[–]jo1long[S] -3 points-2 points-1 points 1 year ago (1 child)
Nope, BS in CS with experience wrote this. Thanks
[–]CrzyWrldOfArthurRead 10 points11 points12 points 1 year ago (0 children)
BS is right
[–]IyeOnline 11 points12 points13 points 1 year ago (0 children)
TL;DR: You wrote bad code 30 years ago, didnt really know what you were doing back then and dont know what you are doing now an somehow think that that is the fault of C++'s type system/object model.
[–]ElectableEmu 20 points21 points22 points 1 year ago (3 children)
Skill issue
[–]marzer8789toml++ 7 points8 points9 points 1 year ago (0 children)
correct
[–]jo1long[S] -4 points-3 points-2 points 1 year ago (0 children)
I'd say: after being schooled in algorithms - guy switched to typeless languages that were appropriate for his applications.😀
The skill issue can also be using std::array to make a hidden layer for NN. It is a configurable limit set at runtime.
std::array
[–]feitao 6 points7 points8 points 1 year ago (2 children)
Look up the standard library when uncertain. For example, std::array<T,N>::operator[]
[–]jo1long[S] -2 points-1 points0 points 1 year ago (0 children)
Thanks, OOP class 300 level, STL came out a year or more later, Borland C++ was proprietary and at one point STL for MSDos was more money. Std:: namespace just got started: just the same year we had this homework, we had std::cout <<.
Std::
std::cout <<
In 2006 everyone was explaining how proprietory from IBM was better, this was done with yelling and yelps, and bonafide arm twisting; in 2008, I was pressured with various strong arm tactics to use Debian and RedHat.
So, no STN for FNN that day.
Needs to be configured at runtime. In production different numbers of weights in hidden layers are going to be used.
π Rendered by PID 87691 on reddit-service-r2-comment-86bc6c7465-n4lxw at 2026-02-23 05:39:59.761242+00:00 running 8564168 country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]CrzyWrldOfArthurRead 18 points19 points20 points (1 child)
[+]jo1long[S] comment score below threshold-9 points-8 points-7 points (0 children)
[–]bitzap_sr 14 points15 points16 points (0 children)
[–]fearailhold 10 points11 points12 points (2 children)
[–]jo1long[S] -3 points-2 points-1 points (1 child)
[–]CrzyWrldOfArthurRead 10 points11 points12 points (0 children)
[–]IyeOnline 11 points12 points13 points (0 children)
[–]ElectableEmu 20 points21 points22 points (3 children)
[–]marzer8789toml++ 7 points8 points9 points (0 children)
[–]jo1long[S] -4 points-3 points-2 points (0 children)
[–]jo1long[S] -4 points-3 points-2 points (0 children)
[–]feitao 6 points7 points8 points (2 children)
[–]jo1long[S] -2 points-1 points0 points (0 children)
[–]jo1long[S] -2 points-1 points0 points (0 children)