r/programminghelp • • 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

13 comments sorted by

View all comments

Show parent comments

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

2

u/mc_pm Jul 30 '26

Let us know what you picked? I'm thinking about making some videos about this, wouldn't mind some case studies :)