#include
<stdlib.h>
int main()
{
system("PAUSE");
return 0;
}
/*
#include<iostream.h>
main ()
{
int X,Y,SUM
Coul <<"\nEnter first number
:":
cin>> X
Cout<<"\nEnter second
number:":
cin>> y
sum=x+y
cout<<"\nsum="<< sum :
return 0
How to
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
Execute the program
A Geant4 application can
be run either in
- `purely hard-coded` batch mode
- batch mode, but reading a macro of commands
- interactive mode, driven by command lines
- interactive mode via a Graphical User Interface
Conclusions
I A C++-program consists of one or more function that are stored in
one (or more) le
I A C++-program consists of one or more function that are stored in
one (or more) le
Tiada ulasan:
Catat Ulasan