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

JS05 - Mohammad Hanifzam Bin Ahmad Kamal

This document outlines the steps to write and run a basic C++ program that calculates the sum of two integers. It includes: 1) opening a C++ source file, 2) writing the program code, 3) running and saving the project, 4) compiling the code, 5) executing the program, 6) inserting data when prompted, and 7) viewing the results. It also briefly defines C++ as a high-level programming language developed by Bjarne Stroustrup that adds object-oriented features to C and is widely used for graphical applications.

Uploaded by

Piejam
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)
39 views7 pages

JS05 - Mohammad Hanifzam Bin Ahmad Kamal

This document outlines the steps to write and run a basic C++ program that calculates the sum of two integers. It includes: 1) opening a C++ source file, 2) writing the program code, 3) running and saving the project, 4) compiling the code, 5) executing the program, 6) inserting data when prompted, and 7) viewing the results. It also briefly defines C++ as a high-level programming language developed by Bjarne Stroustrup that adds object-oriented features to C and is widely used for graphical applications.

Uploaded by

Piejam
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 05 C++

QUESTION/DISCUSSION
1)
a)
b)

How to
Compilation Process
Execute the program.

Steps 1 Open Programming C++

Steps 2 Select new source file.

Steps 3 Write this program.

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

#include <iostream.h>
#include <stdlib.h>
int main()
{
int x,y,sum;
cout<<"\nEnter first number :";
cin>>x;
cout<<"\nntr second number:";
cin>>y;
sum=x+y;
cout<<"\nsum="<<sum;

system("PAUSE");
return 0;
}

STEPS 4 Run the Project.

STEPS 5 Save the file under project 1 or Whatever.

STEPS 6 Compilation process.

STEPS 7 Execute the program.

STEPS 8 Insert the data.

RESULT

2)

What is C++ Programming

A high-level programming language developed by Bjarne Stroustrup at


Bell Labs. C++ adds object-oriented features to its predecessor, C. C+
+ is one of the most popular programming language for graphical
applications, such as those that run in Windows and Macintosh
environments.

CONCLUSION
In a conclusion, I have learned a lot how to using of the
C++ software. C++ is a great programming language
that can make programming a lot of fun.

You might also like