﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-Are you ready?</title><link>http://www.cnitblog.com/glovinglili/</link><description>Are you ready?</description><language>zh-cn</language><lastBuildDate>Wed, 29 Apr 2026 07:14:15 GMT</lastBuildDate><pubDate>Wed, 29 Apr 2026 07:14:15 GMT</pubDate><ttl>60</ttl><item><title>simple problem</title><link>http://www.cnitblog.com/glovinglili/archive/2005/05/19/167.html</link><dc:creator>Are you ready?</dc:creator><author>Are you ready?</author><pubDate>Thu, 19 May 2005 06:03:00 GMT</pubDate><guid>http://www.cnitblog.com/glovinglili/archive/2005/05/19/167.html</guid><wfw:comment>http://www.cnitblog.com/glovinglili/comments/167.html</wfw:comment><comments>http://www.cnitblog.com/glovinglili/archive/2005/05/19/167.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/glovinglili/comments/commentRss/167.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/glovinglili/services/trackbacks/167.html</trackback:ping><description><![CDATA[<P>clear<BR>a=0<BR>b=0<BR>@ 1,2 say "请输入 a:" get a<BR>read<BR>@ 2,2 say "请输入 b:" get b<BR>read<BR>if a&gt;b<BR>&nbsp;max1=a<BR>&nbsp;min1=b<BR>&nbsp;@ 3,2 say ""<BR>&nbsp;??"max=",max1,"min=",min1<BR>else<BR>&nbsp;if a=b<BR>&nbsp;&nbsp;@ 3,2 say ""<BR>&nbsp;&nbsp;??"a=b"<BR>&nbsp;else<BR>&nbsp;&nbsp;max1=b<BR>&nbsp;&nbsp;min1=a<BR>&nbsp;&nbsp;@ 3,2 say ""<BR>&nbsp;&nbsp;??"max=",max1,"min=",min1<BR>&nbsp;endif<BR>endif<BR>&nbsp;<BR>修改后：<BR>clear<BR>a=0<BR>b=0<BR>@ 1,2 say "请输入 a:" get a<BR>read<BR>@ 2,2 say "请输入 b:" get b<BR>read<BR>@3,2 say ""<BR>if a=b<BR>&nbsp;??"a=b"<BR>else<BR>&nbsp;if a&gt;b<BR>&nbsp;&nbsp;max1=a<BR>&nbsp;&nbsp;min1=b<BR>&nbsp;else<BR>&nbsp;&nbsp;max1=b<BR>&nbsp;&nbsp;min1=a<BR>&nbsp;endif<BR>&nbsp;* ??"max=",max1,"min=",min1<BR>&nbsp;??"max="+str(max1)+"min="+str(min1)<BR>endif<BR></P><img src ="http://www.cnitblog.com/glovinglili/aggbug/167.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/glovinglili/" target="_blank">Are you ready?</a> 2005-05-19 14:03 <a href="http://www.cnitblog.com/glovinglili/archive/2005/05/19/167.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>study foxpro</title><link>http://www.cnitblog.com/glovinglili/archive/2005/05/19/166.html</link><dc:creator>Are you ready?</dc:creator><author>Are you ready?</author><pubDate>Thu, 19 May 2005 02:34:00 GMT</pubDate><guid>http://www.cnitblog.com/glovinglili/archive/2005/05/19/166.html</guid><wfw:comment>http://www.cnitblog.com/glovinglili/comments/166.html</wfw:comment><comments>http://www.cnitblog.com/glovinglili/archive/2005/05/19/166.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/glovinglili/comments/commentRss/166.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/glovinglili/services/trackbacks/166.html</trackback:ping><description><![CDATA[函数定义的语法如下：<BR><BR>FUNCTION&nbsp; 函数名<BR>PARAMETERS&nbsp; 参数表<BR>函数体<BR>RETURN 返回值<BR>ENDFUNC<BR><BR>example:<BR><BR>clear<BR>strout()<BR>function strout<BR>?"Welcome to visual foxpro!"<BR>return<BR>endfunc<BR>*没有参数时，“PARAMETERS&nbsp; 参数表”可以省略<BR><BR><BR>clear<BR>?addon(2,3)<BR>function addon<BR>parameters a,b<BR>c=a+b<BR>return c<BR>endfunc&nbsp;&nbsp;<BR><BR>过程的定义如下：<BR>&nbsp;PROCEDURE&nbsp; 过程名<BR>&nbsp;PARAMETERS 参数表<BR>&nbsp;过程程序主体<BR>&nbsp;ENDPROC<BR><BR>example:<BR>clear<BR>do stroutpro<BR>procedure stroutpro<BR>?"visual foxpro is useful"<BR>endproc<BR><BR><BR>clear<BR>c=0<BR>do addonpro with 4,3,c<BR>?c<BR>procedure addonpro<BR>parameters a,b,d<BR>d=a+b<BR>endproc<BR><BR>*运行结果是7<BR>*怎么会是7？难道VFP默认是按址传递参数的？<BR>*这个问题到后面再解决！<BR><BR>**函数和过程的最大不同只在于：函数可以有返回值，过程没有返回值；另外它们的调用方式也有所不同！<img src ="http://www.cnitblog.com/glovinglili/aggbug/166.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/glovinglili/" target="_blank">Are you ready?</a> 2005-05-19 10:34 <a href="http://www.cnitblog.com/glovinglili/archive/2005/05/19/166.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>