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

FUNDAMENTAL C++

1. Go t start >> all application >> open programming c++

2. Click the tab file and then select New Source File

3. Write this program


/*this is a program that computers the sum of two integar number*/
#include <iostream>
#include<stdlib.h>
int main()
{
int X,Y,sum;
std::cout<<\nEnter first number:;
std::cin>>Y;

std::cout<<\nEnter second number:;


std::cin>>Y;

sum=X+Y;
std::cout<<\nSum=<<sum;

system (PAUSE);
return 0;

4. Compile the project by clicking the execute tab and choosing compile and run or
press f11

5. Save the file name Project 1

6. Wait until process is finish

7. Enter number

8. Insert first and second number

9. The result of your sum are shown

QUESTION
1 . How to
a. Complilation process

b. Execute the program

2. what is C++ programming


a. c++ is a general purpose programming language. It has imperative, object-orientedand generic
programming features.

Вам также может понравиться