Sie sind auf Seite 1von 7

JOB SHEET

FUNDEMENTAL C++
1. Go to start >> all applications >> open programming C++

2. Click the tab file and then select New Source File.

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;
}
4. Compile the project by clicking the Execute tab and choosing Compile and run or just
press F11.

5. Save the file under the name Project 1.

6. Wait until compilation process is finished.

7. The program will then run automatically. A command prompt screen will appear.

8. Insert the corresponding values or data into the program.

9. Then your result data will appear.

QUESTION/DISCUSSION
1. A. Compilation process
Click the Execute tab and then click Compile or you can just use the F9 shortcut.

B. Execute the program


In the Execute tab, click run or use the F10 shortcut

2. What is C++ Programming?


C++ is a general purpose programming language. It has imperative, object-oriented
and generic programming features, while also providing the facilities for low level
memory manipulation.

3. Conclusion
I have learned how to use codes in C++ programing, successfully compile a program,
and know the symbols for mathematical operators and standard operators.

Das könnte Ihnen auch gefallen