0% found this document useful (0 votes)
666 views

Jobsheet 5 C++ Programming

1. Open Dev-C++ and create a new source file. Write the C++ program according to the provided text without any mistakes. 2. Compile and run the program by pressing F9 and the run button respectively. This will check for errors and execute the program. 3. When running, enter two numbers when prompted and the program will output the result. The compilation process involves preprocessing, compiling, assembling, and linking to create an executable file. C++ is an object-oriented language that adds classes and objects to C for graphical applications.

Uploaded by

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

Jobsheet 5 C++ Programming

1. Open Dev-C++ and create a new source file. Write the C++ program according to the provided text without any mistakes. 2. Compile and run the program by pressing F9 and the run button respectively. This will check for errors and execute the program. 3. When running, enter two numbers when prompted and the program will output the result. The compilation process involves preprocessing, compiling, assembling, and linking to create an executable file. C++ is an object-oriented language that adds classes and objects to C for graphical applications.

Uploaded by

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

1.

OPEN DEV-C++ AS A START

2. SELECT NEW SOURCE FILE. IT WILL


APPEAR AS A BLANK PAGE

3. WRITE ALL THE PROGRAM


ACCORDING THE TEXT GIVEN
AND MAKE SURE YOU COPY
ALL OF THEM WITH NO
MISTAKE

4.SELECT RUN BUTTON TO THE PROJECT

5. SAVE THE PROJECT UNDER


PROJECT 1 TO MAKE SURE NO
MISSING DATA

6. SELECT COMPILE (F9) .COMPILATION PROCESS


WILL RUN TO CHECK THE PROGRAM

7.EXECUTE THE PROGRAM

8. INSERT DATA THE FIRST NUMBER


AND SECOND NUMBER

9.THE RESULTS

QUESTION / DISCUSSION

1. How to
a. Compilation Process
The C++ preprocessor copies the contents of the included header files into the source
code file, generates macro code, and replaces symbolic constants defined
using #define with their values.
The expanded source code file produced by the C++ preprocessor is compiled into the
assembly language for the platform.
The assembler code generated by the compiler is assembled into the object code for
the platform.
The object code file generated by the assembler is linked together with the object
code files for any library functions used to produce an executable file

b. Execute the program


Execute program is a program that end with .exe

2. What is C++ Programming


C++ is 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
C++ provide a program to allow some program to execute very well
according to some of the program to run very well

You might also like