Struggling with "Passive Understanding" – Can understand C++ code but can't write it myself. Advice?

Posted by tadipaar69@reddit | learnprogramming | View on Reddit | 12 comments

Hi everyone,

I’m a CS student from India currently learning C++ with the goal of getting into DSA and eventually LeetCode for job placements.

I’ve run into a massive wall: I understand 100% of the code when I see it in a tutorial or read it in a book. The logic makes sense when someone explains it. However, the moment I open a blank IDE to write it myself, I freeze. I especially struggle with translating logic into syntax, particularly with conditionals and nested loops.

I feel like I’m lagging behind my peers and moving way too slowly. Is it normal to be "literate" in C++ but unable to "speak" it yet?

For those who were "average" students or struggled with the logic at first, how did you bridge the gap between understanding a tutorial and writing original code? What specific exercises helped you start "thinking" in C++?

Thanks in advance!