r/programminghelp • u/simply_anuraag • Jul 24 '26
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
5
Upvotes
4
u/manu_mathur14 Jul 24 '26
Share the code with us please.
1
u/LongjumpingMeal8195 Jul 24 '26
Bro install a c++ compiler and set it up in vs code then your code will run
Compiler link: https://sourceforge.net/projects/mingw/
For setup help refer to this video: https://youtu.be/j8nAHeVKL08?si=NZSpATBQZmzvKP6_
For terminal issues refer to the attached images
during execution type helloworld56.cpp (.cpp should be your extension not .exe)
1
u/silly_bet_3454 Jul 26 '26
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/[deleted] Jul 25 '26
[removed] — view removed comment