Simple VS Code installation For C and C++ Without Any Errors.

Vs code is very useful IDE and 100times better IDE than turbo C which is recommended by colleges. Here we are sharing simplest method to install MinG
Admin

Vs code is very useful IDE and 100times better IDE  than turbo C which is recommended by colleges. Here we are sharing simplest method to install MinGW and run a C++/C program without any errors .

a lot of vs code installation guide available on internet this is the simplest one when i was trying to follow the available methods  i got many issues then i found this one. mainly the erorrs occurs due to wrong installation of MinGW.

Here I am sharing My MinGW Backup which is customize for graphics.h too. 

Download Mingw

Open this file using 7zip and directly extract it to C:\.

Now Open CMD and type gcc --version


Now Go to search and search Edit the system environment variables

Select Edit the system environment variables.

  1. goog_105879234Click On environment variables.
  2. Select path available on System variables 
  3. Then New and add C:\MinGW\bin on it.
  4. exit.

Now Download Vs code And simply install it.

Here You Found a window Like this 


Goto File Manager and create a folder.

Select Open Folder choose the folder you created.

Now You have to install some extensions.

  1. C/C++
  2. Code Runner


Now open Settings

Search For Run in terminal and Tick it.


Now Write Your First Program

#include<iostream>
using namespace std;
int main()
{
    int num1,num2,area;
    cout<<"Enter value of num1: ";
    cin>>num1;
    cout<<"enter value of num2: ";
    cin>>num2;
    area=num1*num2;
    cout<<"Area =: "<<area;
    return 0;
}

Click on code runner icon

Give Your Input

If You still gets error comment below.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.