You are on page 1of 11

Fundamental of C++

Question / Discussion
1. Open programming C++

2. Open Dev-C++

3. Write this program

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


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

4. Run The project

5. Save the file under Fiq C++

6. Compilation Process

7. Execute the program

8. Insert the data and the result SUM show up

Question / Discussion
9. How To
I . Compilation process

You also can Click F9 to Keyword on Keyboard.

ii. Execute the program

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:-

Conclusion
Generalization and abstraction are two of the fundamental bricks in building reusable code.
When patterns of work are generalized, they can be captured as templates. They can then
be tested thoroughly for the most general cases and set free as reusable components. The
C++ algorithms, containers, function objects, and predicates work together to provide the
developer with the tools necessary for generic programming. Although generic programming
puts a higher burden on the supplier and producer of the component, it relieves a significant
burden on the consumer of the component. This give-and-take between supplier and
consumer ultimately improves the quality of available software.

You might also like