G++ is not working

Could someone help me with installing g++, it isnt working.

I’m following the codecademy course for c++, and need to install g++, but when trying to run the command g++ I get the output " ‘g++’ is not recognized as an internal or external command, operable program or batch file"

I followed all steps exactly.

How can I fix this?

I couldn’t get to to work as a path variable either.
I had to get a C++ compiler and
I ended up using git bash to do the g++ stuff in the terminal.