0% found this document useful (0 votes)
56 views7 pages

Job Sheet: Fundemental C++ 1. Go To Start All Applications Open Programming C++

This document provides instructions for writing a basic C++ program to add two numbers: 1. Open the Visual Studio IDE and create a new C++ console application project. 2. Write a simple program that takes in two numbers as input, adds them together, and displays the sum. 3. Compile and run the program by pressing F11. This will build and execute the program.

Uploaded by

Kenshin Himura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views7 pages

Job Sheet: Fundemental C++ 1. Go To Start All Applications Open Programming C++

This document provides instructions for writing a basic C++ program to add two numbers: 1. Open the Visual Studio IDE and create a new C++ console application project. 2. Write a simple program that takes in two numbers as input, adds them together, and displays the sum. 3. Compile and run the program by pressing F11. This will build and execute the program.

Uploaded by

Kenshin Himura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

JOB SHEET

FUNDEMENTAL C++
1. Go to start >> all applications >> open programming C++

2.

Click the tab file and then select New Source File.

3.

After that, click Console Application category to start the project.

4.

Write this program


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

5.

Compile the project by clicking the Execute tab and choosing Compile and run or
just press F11.

6.

Wait until compilation process is finished.

7.

Execute the program

8.

Insert the data

9.

Result

Question / Discussion
1.

How to
a) Compilation process.
- After done writing the program, find and select the button
excute
- Select compile and run

b) Execute the program


- for running the program you must select the execute button to
run program or for shortcut use the F10

2.

What is C++ Programming?


C++ is a general purpose programming language. It has imperative, objectoriented and generic programming features, while also providing the
facilities for low level memory manipulation.

You might also like