create a cpp file. send this cpp file to the compiler. g++ filename.cpp a file is being created automatically. (a.exe) run this a.exe file .\a.exe Hurray, your program is successfully executed.