PAUSE
UTERMINAL
TERMINAL
NEXT
$V1$
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
ILLUSTRATION
GO
Assume that there are 2 files ...
const.h
#define LIMIT 16
#define FACTOR 5
#define MIN -5
Assume that there are 2 files: const.h and ...
Assume that there are 2 files: const.h and myfile.c
myfile.c
#include const.h
main()
{
int i, sum = 0;
for (i = 1; i <= LIMIT; i++) {
sum = i * FACTOR + sum;
}
}
The line #include const.h says that the file const.h will be
loaded into the file being compiled, i.e., myfile.c.
When the programs are loaded, the physical effect is that the file
const.h (the header file) is included into the file myfile.c.
#define LIMIT 16
#define FACTOR 5
#define MIN -5
main()
{
int i, sum = 0;
for (i = 1; i <= LIMIT; i++) {
sum = i * FACTOR + sum;
}
}