How to Compile and Run a C++ Program from Command Prompt in Windows 10

Published: 06 February 2021
on channel: LearningLad
213,150
2.5k

in this video tutorial, you will learn How to compile/ build and run a C++ language Program in command prompt on windows 10 operating System.

After installing C++ toolset ( mingw oin windows is used here ) we need to set the path environment variable.

After that we need to open the command prompt and use the command
g++ program.c
this will generate the executable from the program.

we can use a.out and run the program.

We can also give name for the executable generated by using
g++ -o program.exe program.c

Our Website
https://www.LearningLad.com

Social Media
Facebook   / learninglad  
Twitter   / learningladedu  
Instagram   / learningladofficial  


Watch video How to Compile and Run a C++ Program from Command Prompt in Windows 10 online without registration, duration hours minute second in high quality. This video was added by user LearningLad 06 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 213,150 once and liked it 2.5 thousand people.