home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
f
/
funnel-x.zip
/
examples
/
ex03.fw
< prev
next >
Wrap
Text File
|
1992-05-27
|
481b
|
37 lines
EX03: An example containing errors to do with the number of times
that macros are called.
@O@<ex03.out@>==@{@-
@<Include Files@>
@<Include Files@>
@<Main Program@>
@}
@$@<Main Program@>==@{@-
main()
{
doit();
}
@}
@$@<Subroutine@>==@{@-
void doit()
{
int i;
for (i=0;i<10;i++)
{
@<Print@>
@<Print@>
}
}@}
@$@<Print@>==@{@-
printf("Hello World!");
printf("\n");@}
@$@<Scan@>==@{scanf@}
@$@<Include Files@>==@{@-
#include <stdio.h>
#include <stdlib.h>@}