summaryrefslogtreecommitdiff
path: root/web/matlabweb/ctest.tex
blob: f31fc567ccc470ad23417ade5e37f3909f2d2065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\input cwebmac

\N{1}{1}The main function.
\Y\B\F\\{alpha} \5
\\{tex}\par
\B\F\\{beta} \5
\\{TeX}\par
\Y\B\&{int} \\{main}(\,)\1\1\2\2\6
${}\{{}$\1\6
\X2:declarations\X\6
${}\\{phi}\K\\{alpha}/\beta;{}$\6
\&{switch} (\|i)\5
${}\{{}$\1\6
\4\&{case} \T{0}:\5
${}\TeX\K\T{3};{}$\6
\&{goto} \\{harmful};\6
\4\&{case} \T{1}:\5
${}\TeX\K\T{3.1};{}$\6
\&{break};\6
\4\&{case} \T{2}:\5
${}\TeX\K\T{3.14};{}$\6
\&{break};\6
\4\&{default}:\5
${}\TeX\K\T{3.14159};{}$\6
\4${}\}{}$\2\6
\4\\{harmful}:\5
;\6
\4${}\}{}$\2\par
\fi

\M{2}
\Y\B\4\X2:declarations\X${}\E{}$\6
\&{double} \\{phi}${},{}$ ${}\TeX;{}$\6
\&{int} \|i;\par

\U1.\fi


\inx
\fin
\con