Run C++ in command prompt - Windows

前端 未结 11 1633
逝去的感伤
逝去的感伤 2020-12-22 19:02

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

11条回答
  •  情歌与酒
    2020-12-22 19:29

    • first Command is :

    g++ -o program file_name.cpp

    • Second command is :

    .\program.exe

    Let us Check this image

提交回复
热议问题