mark.mod
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· MOD 代码 · 共 25 行
MOD
25 行
(*#@(#)mark.mod 4.1 Ultrix 7/17/90 *)module test;type nodeptr = pointer to node; node = record left,right: nodeptr; val:integer; end;procedure Checktree(p: nodeptr): boolean;var result: boolean;begin result := true; WITH p^ do if left<>nil then if left^.val <= val then result :=false; else result := Checktree(left) and result; end; end; if right<>nil then if right^.val >= val then result := false; else result := Checktree(right) and result; end; end; end; return (result);end Checktree; (* checktree *)end test.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?