HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to compile and run c++ programs using mingw

17,980 views November 10, 2018 13:25

Watch on YouTube
ChannelCode Stack

Description from the creator

In this lecture we will learn how to compile and run c++ programs in mingw. for this we will use command promt . You must have to follow following instructions .
1: save your file in either .cpp or .c extension and all file types to all types in notepad during saving . it will not .txt file
2: if you are coding using c++ libraries like iostream then you have to use the following command for compile and run c++ program .

g++ file.cpp -o file.exe
file.exe
And if you are coding in c style then following command will work

gcc file.cpp -o file.exe
file.exe

About this tutorial

Code Stack published this 13:25 video tutorial on November 10, 2018. It has been watched 17,980 times on YouTube.

Channel
Code Stack
Category
Education
Duration
13:25
Published
November 10, 2018
Views
17,980
Likes
87

Tags

Share

This tutorial in other languages