正在加载图片...
Package Example package package example is type life is(sleeping, working, eating, entertaiment, otheractions); subtype uint 4 is integer range 0 to 15 subtype uint is integer range 0 to 31 function compare(a, b: integer) return boolean; end package exampl package body package_ example is function compare(a, b: integer) return boolean is variable temp: boolean; gI In if a<b then temp - true else temp: =false end if return tem end compare end package examplePackage Example package package_example is type life is (sleeping, working, eating, entertaiment, otheractions); subtype uint4 is integer range 0 to 15; subtype uint5 is integer range 0 to 31; function compare(a, b: integer) return boolean; end package_example; package body package_example is function compare(a,b: integer) return boolean is variable temp:boolean; begin if a<b then temp:=true; else temp:=false; end if; return temp; end compare; end package_example;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有