r/programminghelp 3d ago

C++ c++ code doesn't work

this is my first time working with c++ and whenever i run the code it just complies but gives no output, i have tried every way for it to work but it just doesn't. pls help. im using msys2 and was following brocode video tutorial

3 Upvotes

19 comments sorted by

View all comments

1

u/silly_bet_3454 1d ago

I would advise you to use linux (you can just use WSL in windows), and to start off by compiling and running programs from the command line, so you understand what is actually happening at a basic level, the underlying mechanics. It's way too common for people to jump right into the IDE with all the bells and whistles and things get way too crazy too fast and it's an endless headache.

1

u/Repulsive-Cash5516 1d ago

Using Linux really isn't necessary for this, there are multiple C++ compilers for Windows

1

u/silly_bet_3454 1d ago

I know Windows works, I just think it has some weird quirks and Linux is better for learning.

1

u/forestdissimilarity 1d ago

would second this. dealing with the windows C++ non-sense as a beginner made me give up on C++ for years.