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. 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 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.
0 Comments
Leave a Reply. |