C++ Compiler Installation

Hi everyone, inside this article we will see about C++ Compiler Installation.

Download & Installation

We will download Visual Studio Code and then add C++ extensions into it. It is a Free and built on open source. Integrated Git, debugging and extensions.

Download VS Code

Here, are the complete details of step by step VS code installation with C++ extensions.

Step #1

Click here to go to official website.

According to your Operating System you can download this IDE. In this case we have Ubuntu OS, so we will download .deb file.

Once we click,

It downloads a file with name “code_1.74.3-1673284829_amd64.deb“. May be later on name will be updated to some other version.

Step #2

Open your terminal and run this command. This command will install application via .deb file.

$ sudo dpkg -i /absolute/path/to/deb/file

Step #3

Once you do installation. Then you can search in your local computer as:

Step #4

Open VScode application software.

Step #5

Click to Add Extension (5th Icon from Top). Search for “code runner“.

Click on it. It will open it’s description page with Install button. Click on “Install” button.

Next,

Search for “c/c++” extension.

So, successfully now we have a application software (IDE) installed with C++ extensions. You can enjoy now your C++ programming.

A Basic Program

Let’s create a very basic program to see how it works.

#include <iostream>
using namespace std;

int main() {
  cout << "Hello Skillshike Team!";
  cout << "\n";
  cout << "I am learning C++";
  cout << "\n";
  return 0;
}

Output

Hello Skillshike Team!
I am learning C++

Successfully, we have executed first program.

We hope this article helped you to understand about C++ Compiler Installation in a very detailed way.

Online Web Tutor invites you to try Skillshike! Learn CakePHP, Laravel, CodeIgniter, Node Js, MySQL, Authentication, RESTful Web Services, etc into a depth level. Master the Coding Skills to Become an Expert in PHP Web Development. So, Search your favourite course and enroll now.

If you liked this article, then please subscribe to our YouTube Channel for PHP & it’s framework, WordPress, Node Js video tutorials. You can also find us on Twitter and Facebook.