New Text Document (2).cpp [Updated | Walkthrough]
Use MinGW (GCC/G++) . After installation, you must add the bin folder path (e.g., C:\MinGW\bin ) to your Windows Environment Variables so your computer recognizes the g++ command.
You need a compiler to transform your .cpp file into an executable .exe file. New Text Document (2).cpp
Type the following command to create an executable named myprogram : g++ "New Text Document (2).cpp" -o myprogram Run the Program: Windows: Type myprogram.exe and hit Enter. Mac/Linux: Type ./myprogram and hit Enter. 4. Alternative: Use an IDE (Recommended) Use MinGW (GCC/G++)
Search for cmd (Windows) or Terminal (Mac). Use MinGW (GCC/G++) . After installation