JS05 - Mohammad Hanifzam Bin Ahmad Kamal

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 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