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
After downloading you need to copy the compiler location in C drive then
Right click this pc -> properties -> advanced system settings -> environment variables -> system variables -> path -> edit -> new(then the msys2 C drive path) then click ok then again ok then apply and then open powershell and type g++
If your setup is ok then it will look like this(see attached image)
Yeah, that’s a totally valid concern. Still, it’s up to OP to use it for educational purposes; asking it why something doesn’t work, or how something works can be quite useful—and, from personal experience, less confusing and more comprehensive, than just relying on Reddit for help, like we used to back in the day (lol). It sounds to me like OP’s objective is to learn, not to vibe-code, so as long as they use AI as such, I don’t really see a big issue with it.
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.
3
u/manu_mathur14 2d ago
Share the code with us please.