I know that everyone uses an IDE nowadays, but I just find it simpler to write my code in notepad++, compile it using a command prompt command, and run it from there too. At
have MinGW compiler bin directory added to path.
use mingw32-g++ -s -c source_file_name.cpp -o output_file_name.o to compile
mingw32-g++ -s -c source_file_name.cpp -o output_file_name.o
then mingw32-g++ -o executable_file_name.exe output_file_name.o to build exe
mingw32-g++ -o executable_file_name.exe output_file_name.o
finally, you run with executable_file_name.exe
executable_file_name.exe