Chinaunix

标题: 程式问题 [打印本页]

作者: ace-chen    时间: 2009-03-27 22:56
标题: 程式问题
main
    call sq_ft()
end main
function sq_ft()
    define l, w integer
    call calc_area(10, 20)    let l = 5
    call calc_area(l,w)
end function
function calc_area(ength, width)
    define length integer,
               width  integer,
               area   integer
    let area = length * width
end function

其中10,20是什么意思?
作者: yunzhongyue    时间: 2009-03-30 09:08
10,20是ength,width这两个变量的实参.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2