engexiaobai 发表于 2015-4-16 16:33:37

好好学习天天向上

panxixue 发表于 2015-4-21 23:01:20

本帖最后由 panxixue 于 2015-4-22 00:28 编辑

占座先马上补作业回来
第一个作业:

axlCmdRegister("cBox" 'cBox)
defun(
cBox ( )
                selBox = axlEnterBox();
               
                x0=car(car(selBox));
                y0=cadr(car(selBox));
               
                x1=car(cadr(selBox));
                y1=cadr(cadr(selBox));
               
                minx=min(x0,x1);
                maxx=max(x0,x1);
               
                miny=min(y0,y1);
                maxy=max(y0,y1);
               
                       
                printf("coordinates ofleft down point: (%f%f)\n",minx,miny);
                printf("coordinates of right uppoint: (%f%f )\n",maxx,maxy);

);end defun



第二个作业


axlCmdRegister("letprog" 'letprog)


defun(
letfunc (ab )



let( (c)
        c=max(a,b);
)


);end defun



defun(

progfunc (ab )

prog(( d )       
        d=max(a,b)
        if(a>b
                then
                return(d);
                else
                        d++;
        )               
)

);end defun










zhangyp 发表于 2015-4-25 17:33:36

好好学习,天天向上……

zhangyp 发表于 2015-4-29 23:38:49

第六课作业 ....http://www.allegro-skill.com/forum.php?mod=image&aid=1353&size=300x300&key=cbe98cde8479e52b&nocache=yes&type=fixnone

bavol 发表于 2015-5-2 23:05:54

交作业:

wuyuhe 发表于 2015-5-26 21:54:14

学习学习,谢谢罗老师的指导

wuyuhe 发表于 2015-5-28 08:09:25

先交第一个的作业,第二个还在研究中。

ssmagic 发表于 2015-5-29 10:05:01

:victory:victory::victory:

linboy 发表于 2015-5-29 13:32:18

学习来了:lol

biblejj33 发表于 2015-5-30 18:32:17

函数返回值及变量的定义
页: 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14
查看完整版本: 第6课:函数返回值及变量的定义