Вы находитесь на странице: 1из 8

C++

1. Open programming C++

2. Select new source file.

3. Write this program.

/*This is a program that computes the sum of two integer number*/

#include <iostream>
using namespace std;
main ()
{
int X,Y,sum;
cout<<"\nEnter first number:";
cin>>X;
cout<<"\nEnter second number:";
cin>>Y;
sum=X+Y;
cout<<"\nSum ="<<sum;
return 0;
}

4. Run the project

5. Save the file under project 1

6. Compilation process

7. Execute the Program

8. Insert the Data

9. Result

1. How to

a. Compilation process

- Go to the Execute tab, click Compile or use F9 button

b. Execute the program

- Go to the Execute tab, click Run or use F10 button

2. What is C++ Programming

C++ is an object oriented programming (OOP) language, developed by


Bjarne Stroustrup, and is an extension of C language. It is therefore
possible to code C++ in a "C style" or "object-oriented style.