0% found this document useful (0 votes)
46 views5 pages

Job Sheet C++

This document provides step-by-step instructions for writing and running a simple C++ program in Dev-C++ that calculates the sum of two integers. The steps are: 1) Open Dev-C++, 2) Create a new source file, 3) Write the C++ code to calculate the sum, 4) Run the program, 5) Save the file, 6) Compile the code using F11 or the compile button, 7) Execute the program using F10 or the run button, 8) Input two numbers, and 9) See the output of the sum. The document also answers how to compile and execute a program and provides a brief definition of C++.

Uploaded by

Aana Solehah
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)
46 views5 pages

Job Sheet C++

This document provides step-by-step instructions for writing and running a simple C++ program in Dev-C++ that calculates the sum of two integers. The steps are: 1) Open Dev-C++, 2) Create a new source file, 3) Write the C++ code to calculate the sum, 4) Run the program, 5) Save the file, 6) Compile the code using F11 or the compile button, 7) Execute the program using F10 or the run button, 8) Input two numbers, and 9) See the output of the sum. The document also answers how to compile and execute a program and provides a brief definition of C++.

Uploaded by

Aana Solehah
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/ 5

1.

Open Programming C++

First open Dev-C++

2. Select new source file

You click file , click at new and choose new source file
After that , it will be out like that picture

3. Write this program

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


number */
#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;
}

Write all that program at blank source file

4. Run the project

Run the program

5. Save the file under project 1

You open file and save that project as a project 1

6. Compiation process

You can click at that arrow or you can press F11

7. Execute the program

After you run , it will be out like that picture

8. Insert the data

You insert some number

9. Result

That is the result

QUESTION
1.
a.

How to
Compilation process
You can press F9
You can click
and it will compile

b. Execute the program


You can press F10
You can click
and it will execute
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."
Conclusion I learn how to use C++ and its easy when you know how to
use it .. also its so fun when you know how to use C++

You might also like