diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:56:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:56:57 +0000 |
commit | f07bb53970ee2ecc53f81a206a3d3a67ef665e4a (patch) | |
tree | 6f57a1d62971db79e5ff023bdfd83b22cb971dc9 /Master/texmf-dist/doc/generic/c-pascal/demo2.tex | |
parent | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (diff) |
doc 6
git-svn-id: svn://tug.org/texlive/trunk@85 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/c-pascal/demo2.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/c-pascal/demo2.tex | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/c-pascal/demo2.tex b/Master/texmf-dist/doc/generic/c-pascal/demo2.tex new file mode 100644 index 00000000000..bd26d89b713 --- /dev/null +++ b/Master/texmf-dist/doc/generic/c-pascal/demo2.tex @@ -0,0 +1,49 @@ +\input cap + + +A short program in C. It was inserted directly into the \TeX\ source file. + +\medskip +\BeginC +#include <stdio.h> + +void main() +{ + a=~a; + printf("Hello, world!\n"); + // printf("Hello, world!\n"); +} +\EndC + +\hrule +\bigskip + +And now a program inserted from a separate file. + +\medskip +\InputC{prog/sun.c} + +\vfill\eject + + +And now programs written in Pascal. This one was typed directly into this +file. + +\medskip +\BeginPascal +program Hello_world; +begin + writeln('Hello, world!'); + { writeln('Hello, world!'); } +end. +\EndPascal + +\hrule +\bigskip + +This one was imported from another file. + +\medskip +\InputPascal{prog/guess.pas} + +\bye |