Professional Documents
Culture Documents
A. Create 2 simple mathematics operators function using C++ Programming language software.
i.
BAHAGI
ii.
TAMBAH
i.
-
ii.
-
iii.
-
Iostream.h
Usually the compiler inserts the contents of a header file called iostream into the program. Where it puts it
depends on the system. The location of such files may be described in your compiler's documentation. A
list of standard C++ header files is in the standrat headers reference.
#include
Beginning with a hash sign (#) are directives for the preprocessor. They are not regular code lines
with expressions but indications for the compiler's preprocessor. In this case the directive
#include
\n
\n is the newline character , when the newline character is output to the console breaks a
newline .
C.
1)
2) Then you you click file , then you choose new , and then you click projek.
9) Then you insert the data then the result will come out like this