,C
#define
#include
#if--#else--#endif
#”

#define []
,()()
,---
,
:()
:
#undef
#undef
#define MAX MAX+10 (?)
7.1

#define ()
#define S (r) PI*r*r
S,(r) PI*r*r”
#define S(a,b) a*b
………..
area=S(3,2);
area=3*2;
#define POWER(x) x*x
x=4; y=6;
z=POWER(x+y);
z=x+y*x+y;
#define POWER(x) ((x)*(x))
z=((x+y)*(x+y));

#define MAX(x,y) (x)>(y)?(x):(y)
…….
main()
{ int a,b,c,d,t;
…….
t=MAX(a+b,c+d);
……
}
t=(a+b)>(c+d)?(a+b):(c+d);
int max(int x,int y)
{ return(x>y?x:y);
}
main()
{ int a,b,c,d,t;
…….
t=max(a+b,c+d);
………
}

,
,

#include,
#include <>
#include,file2.c”
file1.c
file2.c
file1.c
file2.c
A
B
A
,
7.2

(*.c)
(*.h)
#include,file2.c”
file1.c
A
file3.c
C
#include,file3.c”
file2.c
B
file1.c
A
file3.c
file2.c

/* powers.h */
#define sqr(x) ((x)*(x))
#define cube(x) ((x)*(x)*(x))
#define quad(x) ((x)*(x)*(x)*(x))
/*ch8_10.c*/
#include <stdio.h>
#include "d:\fengyi\bkc\powers.h"
#define MAX_POWER 10
void main()
{ int n;
printf("number\t exp2\t exp3\t exp4\n");
printf("----\t----\t-----\t------\n");
for(n=1;n<=MAX_POWER;n++)
printf("%2d\t %3d\t %4d\t %5d\n",n,sqr(n),cube(n),quad(n));
}