What is C++?

C++ is a programming language used to create softwares, games etc

Tools to Install

Download mingw setup file of Codeblocks from the following link http://www.codeblocks.org/downloads/binaries/

And install it with default settings

 

Creating your first C++ Program

  1. Open CodeBlocks and click on File > New > Empty File
  2. Add following code it in

#include <iostream>

using namespace std;

int main()

{

cout << “Welcome to C++!” << endl;

return 0;

}

  1. Now save the file as cpp by clicking on File > Save File
  2. Now click on Build > Build and run or press f9 and you will see Welcome to C++! In the console

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here