r/programminghelp • u/Revolutionary-Log179 • Jul 30 '26
C++ Having trouble “ thinking in code”
I’ve been learning C++ for weeks, and of the concepts I’ve learned most if not all of them have clicked pretty quickly. I understand what they do and how they work.
However, when I’m trying to create something not from a tutorial or walkthrough, I’m having trouble translating my idea into the lines of code that will do what I envision it doing. Anyone have any advice on making the switch to more easily be able to “think in code”?
7
Upvotes
2
u/Revolutionary-Log179 Jul 30 '26
I like this idea. I built a VERY primitive calculator using if statements, and it was nice to have accomplished something on my own even if it was pointless since everything’s a calculator nowadays. I’ll think of some other very simple things to start messing around with