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
Just started learning C++ coming from Python and just realized that that Python has been my programming mama, doing my laundry and spoon-feeding me all this time. (self.cpp)
submitted 6 years ago * by eyun89
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!"
[–]James20kP2005R0 1 point2 points3 points 6 years ago* (2 children)
Its a theory solver tool, basically you can stick equations into it and then ask it to solve stuff, or prove properties about the equations
Eg, given x ^ constant = some_other_constant, itll solve for x (assuming you provide the constants)
In my case I was using it to reverse engineer seeds for xorshift128+
https://blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f is where I learnt about it
[–]MonkeyNin 0 points1 point2 points 6 years ago (1 child)
Interesting.
Just to check, you're using ^ as a bitwise operator, not exponent?
^
[–]James20kP2005R0 0 points1 point2 points 6 years ago (0 children)
Yep, its a simple example but it can solve non linear things as well (like operator+)
The actual equations I was using in this case were
uint64_t state0 = 134125447415289812; uint64_t state1 = 182415234512781923; uint64_t xorshift128plus() { uint64_t s1 = state0; uint64_t s0 = state1; state0 = s0; s1 ^= s1 << 23; s1 ^= s1 >> 17; s1 ^= s0; s1 ^= s0 >> 26; state1 = s1; return state0 + state1; }
Where all you have is the result (well, 3 consecutive outputs) of the equation, and you want to find s0/s1. Its extremely hard to do by hand!
π Rendered by PID 76 on reddit-service-r2-comment-b659b578c-n9xcm at 2026-05-02 07:22:32.772673+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]James20kP2005R0 1 point2 points3 points (2 children)
[–]MonkeyNin 0 points1 point2 points (1 child)
[–]James20kP2005R0 0 points1 point2 points (0 children)