Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 4
First install minGW compiler. Just google it and download the latest version. it's free.
Then write your code in notepad and save it with the .cpp extension.
For example let's say you have your file saved in
c:\test\file.cpp
Then go to command prompt and do one of these ways:
HARD WAY:
type
g++ c:\test\file.cpp -o c:\test\file.exe
THE EASY WAY:
First navigate to the file path using the CD comnand:
cd c:\test
Then just type in:
make file
REMEMBER do not put the extension .cpp in the file's name in this method.