For running the program just type the name of the source file without. The command will change if you are using any other compiler, like for Turbo C++ it will be tcc, for Borland C++ it will be bcc and so on.ĩ. I have used gcc command because I have installed GCC compiler in my system. Here filename is the name of the program file. Now for compiling the program type gcc filename. Lets say you have saved the program on Desktop then type cd desktop and press enter.Ĩ. Now change the directory to where you have saved your C or C++ program file. Type cmd and press enter to open command prompt.ħ. After that click all OK buttons to save the information.Ħ. You can find the path of bin folder by going to the directory where you have installed the compiler.ĥ. In Variable name filed enter path and in Variable value filed enter the path of the bin folder of compiler.Ĥ. A new window will open, there click on New button. Click on Advance system settings and then Environment Variables.ģ. So, first right click on Computer icon and go to Properties option.Ģ. If you don’t have any, you can easily get them by searching on Google.ġ.Before running programs we must set the path of compiler. You must have a C or C++ compiler like GCC, Visual C++, etc.
![xojo run a program from program xojo run a program from program](https://i.ytimg.com/vi/uMYfky9kK5Q/maxresdefault.jpg)
Running C and C++ programs using command prompt is useful in case you don’t have an IDE installed in your system.Īlso Read: Configure Notepad++ to Run C, C++ and Java Programs
![xojo run a program from program xojo run a program from program](https://www.jeremieleroy.com/files/treeview-medium1.png)
#Xojo run a program from program how to#
In this article I will tell you how to run C and C++ program in CMD.ĬMD or Command Prompt is a command line interpreter in Windows operating system.