- 4
- 0
- 约7.28千字
- 约 36页
- 2017-05-30 发布于北京
- 举报
例 写出下列程序的输出 set talk off x=1 y=3 do sub with x,(y),5 ? x,y return procedure sub parameter a,b,c a=a+b+c b=a+b-c return clearstore 3 to xstore 5 to ydo plus with x ,y ?x,yprocedure plusparameters a1,a2a1=a1+a2a2=a1+a2endproc 例 写出下列程序的输出 do plus with (x) ,(y) plus (x , y) do plus with (x ,y) 错 plus x , y 错 *主程序:MAIN.PRG SET?TALK?OFF CLEAR? S=0 DO?SUB?WITH?10,S ?S RETU *子程序SUB.PRG PARAMETERS?D1,D2 D1=D1+D1 D2=D1*2 RETURN 作业与实验 1、利用子程序实现 S=A!+B!+C! 2、运行以下程序,写出结果: public x,y procedure p1 procedure p2 x=10
您可能关注的文档
最近下载
- Rhino软件二次开发:RhinoCommonAPI使用详解.pdf VIP
- 2014标化工地创建方案.docx VIP
- 欧洲外贸网址大全.doc VIP
- 建筑专业的心得体会(通用6篇).pdf VIP
- 富士B9125 Copier-Printer Copier-Printer施乐B9136 Copier-Printer Copier-Printer, B9100 Copier-Printer Copier-Printer, B9110 Copier-Printer Copier-Printer使用说明书.pdf VIP
- 药物临床试验中试验用药品的管理.ppt VIP
- 包装厂电动地平车安全风险分级管控清单.doc VIP
- 三轴搅拌桩试验桩总结.docx
- 大棚蔬菜施肥技术.ppt VIP
- 电工电子技术(第3版)全套课件.pptx
原创力文档

文档评论(0)