浏览代码

+ Added Octstr example

michael 23 年之前
父节点
当前提交
b963ca1c2a
共有 3 个文件被更改,包括 17 次插入2 次删除
  1. 1 1
      docs/refex/Makefile
  2. 2 1
      docs/refex/README
  3. 14 0
      docs/refex/ex112.pp

+ 1 - 1
docs/refex/Makefile

@@ -40,7 +40,7 @@ OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 \
         ex67 ex68 ex69 ex70 ex71 ex72 ex73 ex74 ex75 ex76 ex77 ex78 ex79 \
 	ex80 ex81 ex82 ex83 ex84 ex85 ex86 ex87 ex88 ex89 \
 	ex90 ex91 ex92 ex93 ex94 ex95 ex96 ex97 ex98 ex99 ex100 ex101 ex102\
-        ex103 ex104 ex105 ex106 ex107 ex108 ex109 ex110 ex111
+        ex103 ex104 ex105 ex106 ex107 ex108 ex109 ex110 ex111 ex112
 
 TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
 

+ 2 - 1
docs/refex/README

@@ -113,4 +113,5 @@ ex107.pp contains an example of the IndexDWord function.
 ex108.pp contains an example of the IndexChar function.
 ex109.pp contains an example of the MoveChar0 function.
 ex110.pp contains an example of the Real2Double function.
-ex111.pp contains an example of the include/exclude functions.
+ex111.pp contains an example of the include/exclude functions.
+ex112.pp contains an example of the OctStr function.

+ 14 - 0
docs/refex/ex112.pp

@@ -0,0 +1,14 @@
+Program example112;
+
+{ Program to demonstrate the OctStr function }
+
+Const Value = 45678;
+
+Var I : longint;
+
+begin
+  For I:=1 to 10 do
+    Writeln (OctStr(Value,I));
+  For I:=1 to 16 do
+    Writeln (OctStr(I),3);
+end.